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
1fc70a94
Commit
1fc70a94
authored
Oct 24, 2000
by
Chris Morgan
Committed by
Alexandre Julliard
Oct 24, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented RpcStringFreeA and UuidToStringA.
parent
21ec006f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
5 deletions
+56
-5
rpcrt4.spec
dlls/rpcrt4/rpcrt4.spec
+2
-0
rpcrt4_main.c
dlls/rpcrt4/rpcrt4_main.c
+54
-5
No files found.
dlls/rpcrt4/rpcrt4.spec
View file @
1fc70a94
...
...
@@ -4,3 +4,5 @@ init RPCRT4_LibMain
@ stdcall UuidCreate(ptr) UuidCreate
@ stdcall RpcStringFreeA(ptr) RpcStringFreeA
@ stdcall UuidToStringA(ptr ptr) UuidToStringA
dlls/rpcrt4/rpcrt4_main.c
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 */
}
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