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
9aa54a90
Commit
9aa54a90
authored
Jan 06, 2002
by
Mark G. Adams
Committed by
Alexandre Julliard
Jan 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix UuidCreate() to not forget MAC address.
Remove {}'s from UuidToStringA() output. Add UuidCreateSequential() function from Windows 2000.
parent
5ea3031c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
rpcrt4.spec
dlls/rpcrt4/rpcrt4.spec
+1
-0
rpcrt4_main.c
dlls/rpcrt4/rpcrt4_main.c
+17
-3
No files found.
dlls/rpcrt4/rpcrt4.spec
View file @
9aa54a90
...
...
@@ -179,6 +179,7 @@ debug_channels (ole)
@ stub UuidCompare
@ stdcall UuidCreate(ptr) UuidCreate
@ stdcall UuidCreateSequential(ptr) UuidCreateSequential # win 2000
@ stub UuidCreateNil
@ stub UuidEqual
@ stub UuidFromStringA
...
...
dlls/rpcrt4/rpcrt4_main.c
View file @
9aa54a90
...
...
@@ -81,7 +81,7 @@ RPCRT4_LibMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
RPC_STATUS
WINAPI
UuidCreate
(
UUID
*
Uuid
)
{
static
char
has_init
=
0
;
unsigned
char
a
[
6
];
static
unsigned
char
a
[
6
];
static
int
adjustment
=
0
;
static
struct
timeval
last
=
{
0
,
0
};
static
UINT16
clock_seq
;
...
...
@@ -96,7 +96,7 @@ RPC_STATUS WINAPI UuidCreate(UUID *Uuid)
char
buf
[
1024
];
int
n
,
i
;
#endif
/* Have we already tried to get the MAC address? */
if
(
!
has_init
)
{
#ifdef HAVE_NET_IF_H
...
...
@@ -264,6 +264,20 @@ sizeof((i).ifr_name)+(i).ifr_addr.sa_len)
return
RPC_S_OK
;
}
/*************************************************************************
* UuidCreateSequential [RPCRT4.@]
*
* Creates a 128bit UUID by calling UuidCreate.
* New API in Win 2000
*/
RPC_STATUS
WINAPI
UuidCreateSequential
(
UUID
*
Uuid
)
{
return
UuidCreate
(
Uuid
);
}
/*************************************************************************
* RpcStringFreeA [RPCRT4.@]
*
...
...
@@ -314,7 +328,7 @@ RPC_STATUS WINAPI UuidToStringA(UUID *Uuid, unsigned char** StringUuid)
if
(
!
(
*
StringUuid
))
return
RPC_S_OUT_OF_MEMORY
;
sprintf
(
*
StringUuid
,
"
{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}
"
,
sprintf
(
*
StringUuid
,
"
%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x
"
,
Uuid
->
Data1
,
Uuid
->
Data2
,
Uuid
->
Data3
,
Uuid
->
Data4
[
0
],
Uuid
->
Data4
[
1
],
Uuid
->
Data4
[
2
],
Uuid
->
Data4
[
3
],
Uuid
->
Data4
[
4
],
Uuid
->
Data4
[
5
],
...
...
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