Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
28643777
Commit
28643777
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Don't use sizeof in traces to avoid printf format warnings.
parent
2a91838f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
dde_misc.c
dlls/user/dde_misc.c
+1
-1
message.c
dlls/user/message.c
+1
-10
No files found.
dlls/user/dde_misc.c
View file @
28643777
...
...
@@ -1529,7 +1529,7 @@ HDDEDATA WDML_Global2DataHandle(HGLOBAL hMem, WINE_DDEHEAD* p)
}
else
{
ERR
(
"Wrong count: %lu / %d
\n
"
,
size
,
sizeof
(
BITMAP
)
+
count
);
ERR
(
"Wrong count: %lu / %d
\n
"
,
size
,
count
);
}
}
else
ERR
(
"No bitmap header
\n
"
);
break
;
...
...
dlls/user/message.c
View file @
28643777
...
...
@@ -1450,7 +1450,6 @@ static BOOL unpack_dde_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM
case
WM_DDE_POKE
:
if
((
!
buffer
||
!*
buffer
)
&&
message
!=
WM_DDE_DATA
)
return
FALSE
;
uiHi
=
*
lparam
;
TRACE
(
"recv ddepack %u %x
\n
"
,
size
,
uiHi
);
if
(
size
)
{
if
(
!
(
hMem
=
GlobalAlloc
(
GMEM_MOVEABLE
|
GMEM_DDESHARE
,
size
)))
...
...
@@ -2032,9 +2031,6 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, int flags
if
(
!
unpack_message
(
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
&
info
.
msg
.
wParam
,
&
info
.
msg
.
lParam
,
&
buffer
,
size
))
{
ERR
(
"invalid packed message %x (%s) hwnd %p wp %x lp %lx size %d
\n
"
,
info
.
msg
.
message
,
SPY_GetMsgName
(
info
.
msg
.
message
,
info
.
msg
.
hwnd
),
info
.
msg
.
hwnd
,
info
.
msg
.
wParam
,
info
.
msg
.
lParam
,
size
);
/* ignore it */
reply_message
(
&
info
,
0
,
TRUE
);
goto
next
;
...
...
@@ -2055,12 +2051,7 @@ static BOOL peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, int flags
{
if
(
!
unpack_dde_message
(
info
.
msg
.
hwnd
,
info
.
msg
.
message
,
&
info
.
msg
.
wParam
,
&
info
.
msg
.
lParam
,
&
buffer
,
size
))
{
ERR
(
"invalid packed dde-message %x (%s) hwnd %p wp %x lp %lx size %d
\n
"
,
info
.
msg
.
message
,
SPY_GetMsgName
(
info
.
msg
.
message
,
info
.
msg
.
hwnd
),
info
.
msg
.
hwnd
,
info
.
msg
.
wParam
,
info
.
msg
.
lParam
,
size
);
goto
next
;
/* ignore it */
}
}
*
msg
=
info
.
msg
;
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
...
...
@@ -2246,7 +2237,7 @@ static LRESULT retrieve_reply( const struct send_message_info *info,
{
if
(
!
(
reply_data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
reply_size
)))
{
WARN
(
"no memory for reply
%d bytes, will be truncated
\n
"
,
reply_size
);
WARN
(
"no memory for reply
, will be truncated
\n
"
);
reply_size
=
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment