Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
04a59014
Commit
04a59014
authored
Aug 05, 2008
by
Jeff Latimer
Committed by
Alexandre Julliard
Aug 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: DdeQueryString returns a NULL str if there is no handle.
parent
ec49e417
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
dde_misc.c
dlls/user32/dde_misc.c
+10
-2
dde.c
dlls/user32/tests/dde.c
+0
-2
No files found.
dlls/user32/dde_misc.c
View file @
04a59014
...
...
@@ -348,8 +348,8 @@ UINT WDML_Initialize(LPDWORD pidInst, PFNCALLBACK pfnCallback,
UINT
ret
;
WNDCLASSEXW
wndclass
;
TRACE
(
"(%p,%p,0x%x,%d)
\n
"
,
pidInst
,
pfnCallback
,
afCmd
,
ulRes
);
TRACE
(
"(%p,%p,0x%x,%d
,0x%x
)
\n
"
,
pidInst
,
pfnCallback
,
afCmd
,
ulRes
,
bUnicode
);
if
(
ulRes
)
{
...
...
@@ -999,6 +999,14 @@ static int WDML_QueryString(WDML_INSTANCE* pInstance, HSZ hsz, LPVOID ptr, DWORD
cchMax
=
MAX_BUFFER_LEN
;
}
/* if there is no input windows returns a NULL string */
if
(
hsz
==
NULL
)
{
CHAR
*
t_ptr
=
ptr
;
*
t_ptr
=
'\0'
;
return
1
;
}
switch
(
codepage
)
{
case
CP_WINANSI
:
...
...
dlls/user32/tests/dde.c
View file @
04a59014
...
...
@@ -654,7 +654,6 @@ static HDDEDATA CALLBACK server_ddeml_callback(UINT uType, UINT uFmt, HCONV hcon
if
(
msg_index
==
5
)
{
todo_wine
{
ok
(
!
lstrcmpA
(
str
,
""
),
"Expected empty string, got %s
\n
"
,
str
);
ok
(
size
==
1
,
"Expected 1, got %d
\n
"
,
size
);
...
...
@@ -696,7 +695,6 @@ static HDDEDATA CALLBACK server_ddeml_callback(UINT uType, UINT uFmt, HCONV hcon
size
=
DdeQueryStringA
(
server_pid
,
hsz2
,
str
,
MAX_PATH
,
CP_WINANSI
);
if
(
msg_index
==
7
)
{
todo_wine
{
ok
(
!
lstrcmpA
(
str
,
""
),
"Expected empty string, got %s
\n
"
,
str
);
ok
(
size
==
1
,
"Expected 1, got %d
\n
"
,
size
);
...
...
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