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
Yoann Laissus
wine
Commits
1fc70a94
Commit
1fc70a94
authored
24 years ago
by
Chris Morgan
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Implemented RpcStringFreeA and UuidToStringA.
parent
21ec006f
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
+2
-0
2 additions, 0 deletions
dlls/rpcrt4/rpcrt4.spec
dlls/rpcrt4/rpcrt4_main.c
+54
-5
54 additions, 5 deletions
dlls/rpcrt4/rpcrt4_main.c
with
56 additions
and
5 deletions
dlls/rpcrt4/rpcrt4.spec
+
2
−
0
View file @
1fc70a94
...
...
@@ -4,3 +4,5 @@ init RPCRT4_LibMain
@ stdcall UuidCreate(ptr) UuidCreate
@ stdcall RpcStringFreeA(ptr) RpcStringFreeA
@ stdcall UuidToStringA(ptr ptr) UuidToStringA
This diff is collapsed.
Click to expand it.
dlls/rpcrt4/rpcrt4_main.c
+
54
−
5
View file @
1fc70a94
...
...
@@ -5,17 +5,19 @@
#include
"config.h"
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
<time.h>
#include
<sys/time.h>
#include
<unistd.h>
#include
"windef.h"
#include
"wine/windef16.h"
#include
"winerror.h"
#include
"winbase.h"
#include
"rpc.h"
#include
<time.h>
#include
<sys/time.h>
#include
<unistd.h>
#include
<stdlib.h>
#ifdef HAVE_SYS_FILE_H
# include <sys/file.h>
#endif
...
...
@@ -265,3 +267,50 @@ sizeof((i).ifr_name)+(i).ifr_addr.sa_len)
return
S_OK
;
}
/*************************************************************************
* RpcStringFreeA [RPCRT4.436]
*
* Frees a character string allocated by the RPC run-time library.
*
* RETURNS
*
* S_OK if successful.
*/
RPC_STATUS
WINAPI
RpcStringFreeA
(
unsigned
char
**
String
)
{
HeapFree
(
GetProcessHeap
(),
0
,
*
String
);
return
S_OK
;
}
/*************************************************************************
* UuidToStringA [RPCRT4.450]
*
* Converts a UUID to a string.
*
* UUID format is 8 hex digits, followed by a hyphen then three groups of
* 4 hex digits each followed by a hyphen and then 12 hex digits
*
* RETURNS
*
* S_OK if successful.
* S_OUT_OF_MEMORY if unsucessful.
*/
RPC_STATUS
WINAPI
UuidToStringA
(
UUID
*
Uuid
,
unsigned
char
**
StringUuid
)
{
*
StringUuid
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
char
)
*
37
);
/* FIXME: this should be RPC_S_OUT_OF_MEMORY */
if
(
!
(
*
StringUuid
))
return
ERROR_OUTOFMEMORY
;
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
],
Uuid
->
Data4
[
6
],
Uuid
->
Data4
[
7
]
);
return
S_OK
;
/*FIXME: this should be RPC_S_OK */
}
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