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
5fa4e85a
Commit
5fa4e85a
authored
Nov 09, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix access to an uninitialized variable.
parent
57226607
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dde.c
dlls/user32/tests/dde.c
+5
-4
No files found.
dlls/user32/tests/dde.c
View file @
5fa4e85a
...
...
@@ -254,6 +254,7 @@ static HDDEDATA CALLBACK client_ddeml_callback(UINT uType, UINT uFmt, HCONV hcon
static
void
test_ddeml_client
(
void
)
{
UINT
ret
;
char
buffer
[
32
];
LPSTR
str
;
DWORD
size
,
res
;
HDDEDATA
hdata
,
op
;
...
...
@@ -359,8 +360,8 @@ static void test_ddeml_client(void)
item
=
DdeCreateStringHandleA
(
client_pid
,
"poker"
,
CP_WINANSI
);
lstrcpyA
(
st
r
,
"poke data
\r\n
"
);
hdata
=
DdeCreateDataHandle
(
client_pid
,
(
LPBYTE
)
str
,
lstrlenA
(
st
r
)
+
1
,
lstrcpyA
(
buffe
r
,
"poke data
\r\n
"
);
hdata
=
DdeCreateDataHandle
(
client_pid
,
(
LPBYTE
)
buffer
,
lstrlenA
(
buffe
r
)
+
1
,
0
,
item
,
CF_TEXT
,
0
);
ok
(
hdata
!=
NULL
,
"Expected non-NULL hdata
\n
"
);
...
...
@@ -402,8 +403,8 @@ static void test_ddeml_client(void)
DdeFreeDataHandle
(
hdata
);
lstrcpyA
(
st
r
,
"[Command(Var)]"
);
hdata
=
DdeCreateDataHandle
(
client_pid
,
(
LPBYTE
)
str
,
lstrlenA
(
st
r
)
+
1
,
lstrcpyA
(
buffe
r
,
"[Command(Var)]"
);
hdata
=
DdeCreateDataHandle
(
client_pid
,
(
LPBYTE
)
buffer
,
lstrlenA
(
buffe
r
)
+
1
,
0
,
NULL
,
CF_TEXT
,
0
);
ok
(
hdata
!=
NULL
,
"Expected non-NULL hdata
\n
"
);
...
...
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