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
b5346a8c
Commit
b5346a8c
authored
Apr 24, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Fix the DDE service formatting for 64-bit.
parent
7bac0f52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dde_misc.c
dlls/user32/dde_misc.c
+2
-2
dde.c
dlls/user32/tests/dde.c
+1
-1
No files found.
dlls/user32/dde_misc.c
View file @
b5346a8c
...
...
@@ -1647,7 +1647,7 @@ HGLOBAL WDML_DataHandle2Global(HDDEDATA hDdeData, BOOL fResponse, BOOL fRelease,
*/
WDML_SERVER
*
WDML_AddServer
(
WDML_INSTANCE
*
pInstance
,
HSZ
hszService
,
HSZ
hszTopic
)
{
static
const
WCHAR
fmtW
[]
=
{
'%'
,
's'
,
'('
,
'0'
,
'x'
,
'%'
,
'
0'
,
'8'
,
'l
'
,
'x'
,
')'
,
0
};
static
const
WCHAR
fmtW
[]
=
{
'%'
,
's'
,
'('
,
'0'
,
'x'
,
'%'
,
'
*
'
,
'x'
,
')'
,
0
};
WDML_SERVER
*
pServer
;
WCHAR
buf1
[
256
];
WCHAR
buf2
[
256
];
...
...
@@ -1659,7 +1659,7 @@ WDML_SERVER* WDML_AddServer(WDML_INSTANCE* pInstance, HSZ hszService, HSZ hszTop
WDML_IncHSZ
(
pInstance
,
hszService
);
DdeQueryStringW
(
pInstance
->
instanceID
,
hszService
,
buf1
,
256
,
CP_WINUNICODE
);
snprintfW
(
buf2
,
256
,
fmtW
,
buf1
,
GetCurrentProcessId
());
snprintfW
(
buf2
,
256
,
fmtW
,
buf1
,
2
*
sizeof
(
ULONG_PTR
),
GetCurrentProcessId
());
pServer
->
hszServiceSpec
=
DdeCreateStringHandleW
(
pInstance
->
instanceID
,
buf2
,
CP_WINUNICODE
);
pServer
->
atomService
=
WDML_MakeAtomFromHsz
(
pServer
->
hszService
);
...
...
dlls/user32/tests/dde.c
View file @
b5346a8c
...
...
@@ -585,7 +585,7 @@ static HDDEDATA CALLBACK server_ddeml_callback(UINT uType, UINT uFmt, HCONV hcon
size
=
DdeQueryStringA
(
server_pid
,
hsz2
,
str
,
MAX_PATH
,
CP_WINANSI
);
ok
(
!
strncmp
(
str
,
"TestDDEServer("
,
14
),
"Expected TestDDEServer(, got %s
\n
"
,
str
);
ok
(
str
[
size
-
1
]
==
')'
,
"Expected ')', got %c
\n
"
,
str
[
size
-
1
]);
ok
(
size
==
25
,
"Expected 25, got %d
\n
"
,
size
);
ok
(
size
==
17
+
2
*
sizeof
(
ULONG_PTR
),
"Got size %d for %s
\n
"
,
size
,
str
);
return
(
HDDEDATA
)
TRUE
;
}
...
...
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