Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
13b0f9f5
Commit
13b0f9f5
authored
22 years ago
by
Gregory M. Turner
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented UuidCompare.
parent
9b239925
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/rpcrt4/rpcrt4.spec
+1
-1
1 addition, 1 deletion
dlls/rpcrt4/rpcrt4.spec
dlls/rpcrt4/rpcrt4_main.c
+31
-6
31 additions, 6 deletions
dlls/rpcrt4/rpcrt4_main.c
with
32 additions
and
7 deletions
dlls/rpcrt4/rpcrt4.spec
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
dlls/rpcrt4/rpcrt4_main.c
+
31
−
6
View file @
13b0f9f5
...
...
@@ -138,14 +138,39 @@ RPC_STATUS WINAPI RpcStringFreeW(LPWSTR* String)
* RETURNS
* TRUE/FALSE
*/
int
WINAPI
UuidEqual
(
UUID
*
u
uid1
,
UUID
*
u
uid2
,
RPC_STATUS
*
Status
)
int
WINAPI
UuidEqual
(
UUID
*
U
uid1
,
UUID
*
U
uid2
,
RPC_STATUS
*
Status
)
{
TRACE
(
"(%s,%s)
\n
"
,
debugstr_guid
(
u
uid1
),
debugstr_guid
(
u
uid2
));
TRACE
(
"(%s,%s)
\n
"
,
debugstr_guid
(
U
uid1
),
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
));
}
/*************************************************************************
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment