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
216b2452
Commit
216b2452
authored
Jun 07, 2014
by
Guillaume Charifi
Committed by
Alexandre Julliard
Jun 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: CoCreateGuid returns E_INVALIDARG on null-GUID.
parent
d13d296c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
compobj.c
dlls/ole32/compobj.c
+5
-1
compobj.c
dlls/ole32/tests/compobj.c
+9
-0
No files found.
dlls/ole32/compobj.c
View file @
216b2452
...
...
@@ -2051,7 +2051,11 @@ HRESULT WINAPI CoDisconnectObject( LPUNKNOWN lpUnk, DWORD reserved )
*/
HRESULT
WINAPI
CoCreateGuid
(
GUID
*
pguid
)
{
DWORD
status
=
UuidCreate
(
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
);
}
...
...
dlls/ole32/tests/compobj.c
View file @
216b2452
...
...
@@ -1977,6 +1977,14 @@ static void test_OleRegGetMiscStatus(void)
}
}
static
void
test_CoCreateGuid
(
void
)
{
HRESULT
hr
;
hr
=
CoCreateGuid
(
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x
\n
"
,
hr
);
}
static
void
init_funcs
(
void
)
{
HMODULE
hOle32
=
GetModuleHandleA
(
"ole32"
);
...
...
@@ -2033,4 +2041,5 @@ START_TEST(compobj)
test_CoGetTreatAsClass
();
test_CoInitializeEx
();
test_OleRegGetMiscStatus
();
test_CoCreateGuid
();
}
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