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
2cd2f122
Commit
2cd2f122
authored
Sep 16, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Sep 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Set uiLo and uiHi to zero on error.
parent
1eaeb3e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
28 deletions
+13
-28
dde_misc.c
dlls/user32/dde_misc.c
+3
-3
dde.c
dlls/user32/tests/dde.c
+10
-25
No files found.
dlls/user32/dde_misc.c
View file @
2cd2f122
...
...
@@ -126,10 +126,10 @@ BOOL WINAPI UnpackDDElParam(UINT msg, LPARAM lParam,
case
WM_DDE_ADVISE
:
case
WM_DDE_DATA
:
case
WM_DDE_POKE
:
if
(
!
lParam
)
return
FALSE
;
if
(
!
(
params
=
GlobalLock
(
(
HGLOBAL
)
lParam
)))
if
(
!
lParam
||
!
(
params
=
GlobalLock
((
HGLOBAL
)
lParam
)))
{
ERR
(
"GlobalLock failed (%lx)
\n
"
,
lParam
);
if
(
uiLo
)
*
uiLo
=
0
;
if
(
uiHi
)
*
uiHi
=
0
;
return
FALSE
;
}
TRACE
(
"unpacked: low %08lx, high %08lx
\n
"
,
params
[
0
],
params
[
1
]);
...
...
dlls/user32/tests/dde.c
View file @
2cd2f122
...
...
@@ -710,21 +710,15 @@ static void test_UnpackDDElParam(void)
hi
=
0xbeef
;
ret
=
UnpackDDElParam
(
WM_DDE_ADVISE
,
(
LPARAM
)
NULL
,
&
lo
,
&
hi
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
todo_wine
{
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
}
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
lo
=
0xdead
;
hi
=
0xbeef
;
ret
=
UnpackDDElParam
(
WM_DDE_ADVISE
,
0xcafebabe
,
&
lo
,
&
hi
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
todo_wine
{
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
}
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
hglobal
=
GlobalAlloc
(
GMEM_DDESHARE
,
2
);
ptr
=
GlobalLock
(
hglobal
);
...
...
@@ -750,11 +744,8 @@ static void test_UnpackDDElParam(void)
hi
=
0xbeef
;
ret
=
UnpackDDElParam
(
WM_DDE_ACK
,
0xcafebabe
,
&
lo
,
&
hi
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
todo_wine
{
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
}
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
lo
=
0xdead
;
hi
=
0xbeef
;
...
...
@@ -767,11 +758,8 @@ static void test_UnpackDDElParam(void)
hi
=
0xbeef
;
ret
=
UnpackDDElParam
(
WM_DDE_DATA
,
0xcafebabe
,
&
lo
,
&
hi
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
todo_wine
{
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
}
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
lo
=
0xdead
;
hi
=
0xbeef
;
...
...
@@ -791,11 +779,8 @@ static void test_UnpackDDElParam(void)
hi
=
0xbeef
;
ret
=
UnpackDDElParam
(
WM_DDE_POKE
,
0xcafebabe
,
&
lo
,
&
hi
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
todo_wine
{
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
}
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
lo
=
0xdead
;
hi
=
0xbeef
;
...
...
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