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
13b0f9f5
Commit
13b0f9f5
authored
Oct 07, 2002
by
Greg Turner
Committed by
Alexandre Julliard
Oct 07, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented UuidCompare.
parent
9b239925
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
7 deletions
+32
-7
rpcrt4.spec
dlls/rpcrt4/rpcrt4.spec
+1
-1
rpcrt4_main.c
dlls/rpcrt4/rpcrt4_main.c
+31
-6
No files found.
dlls/rpcrt4/rpcrt4.spec
View file @
13b0f9f5
...
...
@@ -171,7 +171,7 @@ init RPCRT4_LibMain
@ stub TowerConstruct
@ stub TowerExplode
@ st
ub
UuidCompare
@ st
dcall UuidCompare(ptr ptr ptr)
UuidCompare
@ stdcall UuidCreate(ptr) UuidCreate
@ stdcall UuidCreateSequential(ptr) UuidCreateSequential # win 2000
@ stdcall UuidCreateNil(ptr) UuidCreateNil
...
...
dlls/rpcrt4/rpcrt4_main.c
View file @
13b0f9f5
...
...
@@ -138,14 +138,39 @@ RPC_STATUS WINAPI RpcStringFreeW(LPWSTR* String)
* RETURNS
* TRUE/FALSE
*/
int
WINAPI
UuidEqual
(
UUID
*
uuid1
,
UUID
*
u
uid2
,
RPC_STATUS
*
Status
)
int
WINAPI
UuidEqual
(
UUID
*
Uuid1
,
UUID
*
U
uid2
,
RPC_STATUS
*
Status
)
{
TRACE
(
"(%s,%s)
\n
"
,
debugstr_guid
(
uuid1
),
debugstr_guid
(
u
uid2
));
TRACE
(
"(%s,%s)
\n
"
,
debugstr_guid
(
Uuid1
),
debugstr_guid
(
U
uid2
));
*
Status
=
RPC_S_OK
;
if
(
!
uuid1
)
uuid1
=
&
uuid_nil
;
if
(
!
uuid2
)
uuid2
=
&
uuid_nil
;
if
(
uuid1
==
uuid2
)
return
TRUE
;
return
!
memcmp
(
uuid1
,
uuid2
,
sizeof
(
UUID
));
if
(
!
Uuid1
)
Uuid1
=
&
uuid_nil
;
if
(
!
Uuid2
)
Uuid2
=
&
uuid_nil
;
if
(
Uuid1
==
Uuid2
)
return
TRUE
;
return
!
memcmp
(
Uuid1
,
Uuid2
,
sizeof
(
UUID
));
}
/*************************************************************************
* UuidCompare [RPCRT4.@]
*
* (an educated-guess implementation)
*
* PARAMS
* UUID *Uuid1 [I] Uuid to compare
* UUID *Uuid2 [I] Uuid to compare
* RPC_STATUS *Status [O] returns RPC_S_OK
*
* RETURNS
* -1 if Uuid1 is less than Uuid2
* 0 if Uuid1 and Uuid2 are equal
* 1 if Uuid1 is greater than Uuid2
*/
int
WINAPI
UuidCompare
(
UUID
*
Uuid1
,
UUID
*
Uuid2
,
RPC_STATUS
*
Status
)
{
TRACE
(
"(%s,%s)
\n
"
,
debugstr_guid
(
Uuid1
),
debugstr_guid
(
Uuid2
));
*
Status
=
RPC_S_OK
;
if
(
!
Uuid1
)
Uuid1
=
&
uuid_nil
;
if
(
!
Uuid2
)
Uuid2
=
&
uuid_nil
;
if
(
Uuid1
==
Uuid2
)
return
0
;
return
memcmp
(
Uuid1
,
Uuid2
,
sizeof
(
UUID
));
}
/*************************************************************************
...
...
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