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
f25ac7cc
Commit
f25ac7cc
authored
Jan 21, 1999
by
Francis Beaudet
Committed by
Alexandre Julliard
Jan 21, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
There were two copies of the DdeCmpStringHandles (A and W) and that
API does not have 2 versions. Removed the extra version.
parent
e4141dc5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
81 deletions
+6
-81
ddeml.h
include/ddeml.h
+2
-3
ddeml.c
misc/ddeml.c
+3
-76
user32.spec
relay32/user32.spec
+1
-2
No files found.
include/ddeml.h
View file @
f25ac7cc
...
...
@@ -115,9 +115,8 @@ BOOL16 WINAPI DdeEnableCallback16(DWORD,HCONV,UINT16);
BOOL32
WINAPI
DdeEnableCallback32
(
DWORD
,
HCONV
,
UINT32
);
#define DdeEnableCallback WINELIB_NAME(DdeEnableCallback)
int
WINAPI
DdeCmpStringHandles16
(
HSZ
,
HSZ
);
int
WINAPI
DdeCmpStringHandles32A
(
HSZ
,
HSZ
);
int
WINAPI
DdeCmpStringHandles32W
(
HSZ
,
HSZ
);
#define DdeCmpStringHandles WINELIB_NAME_AW(DdeCmpStringHandles)
int
WINAPI
DdeCmpStringHandles32
(
HSZ
,
HSZ
);
#define DdeCmpStringHandles WINELIB_NAME(DdeCmpStringHandles)
HDDEDATA
WINAPI
DdeNameService16
(
DWORD
,
HSZ
,
HSZ
,
UINT16
);
HDDEDATA
WINAPI
DdeNameService32
(
DWORD
,
HSZ
,
HSZ
,
UINT32
);
...
...
misc/ddeml.c
View file @
f25ac7cc
...
...
@@ -815,11 +815,11 @@ UINT32 WINAPI DdeGetLastError32( DWORD idInst )
*/
int
WINAPI
DdeCmpStringHandles16
(
HSZ
hsz1
,
HSZ
hsz2
)
{
return
DdeCmpStringHandles32
A
(
hsz1
,
hsz2
);
return
DdeCmpStringHandles32
(
hsz1
,
hsz2
);
}
/*****************************************************************
* DdeCmpStringHandles32
A
(USER32.91)
* DdeCmpStringHandles32 (USER32.91)
*
* Compares the value of two string handles. This comparison is
* not case sensitive.
...
...
@@ -829,7 +829,7 @@ int WINAPI DdeCmpStringHandles16( HSZ hsz1, HSZ hsz2 )
* 0 The values of hsz 1 and 2 are the same or both zero.
* 1 The value of hsz2 is zero of less than hsz1
*/
int
WINAPI
DdeCmpStringHandles32
A
(
HSZ
hsz1
,
HSZ
hsz2
)
int
WINAPI
DdeCmpStringHandles32
(
HSZ
hsz1
,
HSZ
hsz2
)
{
CHAR
psz1
[
MAX_BUFFER_LEN
];
CHAR
psz2
[
MAX_BUFFER_LEN
];
...
...
@@ -884,79 +884,6 @@ int WINAPI DdeCmpStringHandles32A( HSZ hsz1, HSZ hsz2 )
}
/*****************************************************************
* DdeCmpStringHandles32W (USER32.623)
*
* Compares the value of two string handles. This comparison is
* not case sensitive.
*
* Returns:
* -1 The value of hsz1 is zero or less than hsz2
* 0 The values of hsz 1 and 2 are the same or both zero.
* 1 The value of hsz2 is zero of less than hsz1
*/
int
WINAPI
DdeCmpStringHandles32W
(
HSZ
hsz1
,
HSZ
hsz2
)
{
WCHAR
pwsz1
[
MAX_BUFFER_LEN
];
WCHAR
pwsz2
[
MAX_BUFFER_LEN
];
int
ret
=
0
;
int
ret1
,
ret2
;
TRACE
(
ddeml
,
"handle 1, handle 2
\n
"
);
ret1
=
GlobalGetAtomName32W
(
hsz1
,
pwsz1
,
MAX_BUFFER_LEN
);
ret2
=
GlobalGetAtomName32W
(
hsz2
,
pwsz2
,
MAX_BUFFER_LEN
);
/* Make sure we found both strings.
*/
if
(
ret1
==
0
&&
ret2
==
0
)
{
/* If both are not found, return both "zero strings".
*/
ret
=
0
;
}
else
if
(
ret1
==
0
)
{
/* If hsz1 is a not found, return hsz1 is "zero string".
*/
ret
=
-
1
;
}
else
if
(
ret2
==
0
)
{
/* If hsz2 is a not found, return hsz2 is "zero string".
*/
ret
=
1
;
}
else
{
LPSTR
psz1
,
psz2
;
psz1
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
pwsz1
);
psz2
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
pwsz2
);
if
(
psz1
!=
NULL
&&
psz2
!=
NULL
)
{
/* Compare the two strings we got ( case insensitive ).
*/
ret
=
strcasecmp
(
psz1
,
psz2
);
/* Since strcmp returns any number smaller than
* 0 when the first string is found to be less than
* the second one we must make sure we are returning
* the proper values.
*/
if
(
ret
<
0
)
{
ret
=
-
1
;
}
else
if
(
ret
>
0
)
{
ret
=
1
;
}
}
HeapFree
(
GetProcessHeap
(),
0
,
psz1
);
HeapFree
(
GetProcessHeap
(),
0
,
psz2
);
}
return
ret
;
}
/*****************************************************************
* PackDDElParam (USER32.414)
*
* RETURNS
...
...
relay32/user32.spec
View file @
f25ac7cc
...
...
@@ -92,7 +92,7 @@ init MAIN_UserInit
88 stdcall DdeAccessData(long ptr) DdeAccessData32
89 stub DdeAddData
90 stdcall DdeClientTransaction(ptr long long long long long long ptr) DdeClientTransaction32
91 stdcall DdeCmpStringHandles
A(long long) DdeCmpStringHandles32A
91 stdcall DdeCmpStringHandles
(long long) DdeCmpStringHandles32
92 stdcall DdeConnect(long long long ptr) DdeConnect32
93 stdcall DdeConnectList(long long long long ptr) DdeConnectList32
94 stdcall DdeCreateDataHandle(long ptr long long long long long) DdeCreateDataHandle32
...
...
@@ -625,4 +625,3 @@ init MAIN_UserInit
620 stdcall GetTaskmanWindow () GetTaskmanWindow
621 stdcall SetTaskmanWindow (long) SetTaskmanWindow
622 stdcall GetProgmanWindow () GetProgmanWindow
623 stdcall DdeCmpStringHandlesW(long long) DdeCmpStringHandles32W
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