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
7e39b005
Commit
7e39b005
authored
Aug 06, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
combase: Move CoCreateGuid().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
93fa2e0a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
29 deletions
+17
-29
Makefile.in
dlls/combase/Makefile.in
+1
-1
combase.c
dlls/combase/combase.c
+14
-0
combase.spec
dlls/combase/combase.spec
+1
-1
compobj.c
dlls/ole32/compobj.c
+0
-26
ole32.spec
dlls/ole32/ole32.spec
+1
-1
No files found.
dlls/combase/Makefile.in
View file @
7e39b005
MODULE
=
combase.dll
IMPORTLIB
=
combase
IMPORTS
=
advapi32 ole32 user32 gdi32 uuid
IMPORTS
=
advapi32 ole32 user32 gdi32 uuid
rpcrt4
DELAYIMPORTS
=
oleaut32
EXTRADLLFLAGS
=
-mno-cygwin
...
...
dlls/combase/combase.c
View file @
7e39b005
...
...
@@ -440,3 +440,17 @@ HRESULT WINAPI CoFileTimeNow(FILETIME *filetime)
GetSystemTimeAsFileTime
(
filetime
);
return
S_OK
;
}
/******************************************************************************
* CoCreateGuid (combase.@)
*/
HRESULT
WINAPI
CoCreateGuid
(
GUID
*
guid
)
{
RPC_STATUS
status
;
if
(
!
guid
)
return
E_INVALIDARG
;
status
=
UuidCreate
(
guid
);
if
(
status
==
RPC_S_OK
||
status
==
RPC_S_UUID_LOCAL_ONLY
)
return
S_OK
;
return
HRESULT_FROM_WIN32
(
status
);
}
dlls/combase/combase.spec
View file @
7e39b005
...
...
@@ -78,7 +78,7 @@
@ stdcall CoCopyProxy(ptr ptr) ole32.CoCopyProxy
@ stub CoCreateErrorInfo
@ stdcall CoCreateFreeThreadedMarshaler(ptr ptr) ole32.CoCreateFreeThreadedMarshaler
@ stdcall CoCreateGuid(ptr)
ole32.CoCreateGuid
@ stdcall CoCreateGuid(ptr)
@ stdcall CoCreateInstance(ptr ptr long ptr ptr) ole32.CoCreateInstance
@ stdcall CoCreateInstanceEx(ptr ptr long ptr long ptr) ole32.CoCreateInstanceEx
@ stub CoCreateInstanceFromApp
...
...
dlls/ole32/compobj.c
View file @
7e39b005
...
...
@@ -2186,32 +2186,6 @@ HRESULT WINAPI CoDisconnectObject( LPUNKNOWN lpUnk, DWORD reserved )
return
S_OK
;
}
/******************************************************************************
* CoCreateGuid [OLE32.@]
*
* Simply forwards to UuidCreate in RPCRT4.
*
* PARAMS
* pguid [O] Points to the GUID to initialize.
*
* RETURNS
* Success: S_OK.
* Failure: HRESULT code.
*
* SEE ALSO
* UuidCreate
*/
HRESULT
WINAPI
CoCreateGuid
(
GUID
*
pguid
)
{
DWORD
status
;
if
(
!
pguid
)
return
E_INVALIDARG
;
status
=
UuidCreate
(
pguid
);
if
(
status
==
RPC_S_OK
||
status
==
RPC_S_UUID_LOCAL_ONLY
)
return
S_OK
;
return
HRESULT_FROM_WIN32
(
status
);
}
static
inline
BOOL
is_valid_hex
(
WCHAR
c
)
{
if
(
!
(((
c
>=
'0'
)
&&
(
c
<=
'9'
))
||
...
...
dlls/ole32/ole32.spec
View file @
7e39b005
...
...
@@ -11,7 +11,7 @@
@ stdcall CoBuildVersion()
@ stdcall CoCopyProxy(ptr ptr)
@ stdcall CoCreateFreeThreadedMarshaler(ptr ptr)
@ stdcall CoCreateGuid(ptr)
@ stdcall CoCreateGuid(ptr)
combase.CoCreateGuid
@ stdcall CoCreateInstance(ptr ptr long ptr ptr)
@ stdcall CoCreateInstanceEx(ptr ptr long ptr long ptr)
@ stdcall CoDecrementMTAUsage(ptr)
...
...
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