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
2cfb02a5
Commit
2cfb02a5
authored
Jun 23, 2000
by
Huw D M Davies
Committed by
Alexandre Julliard
Jun 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CLSIDFromString apparently also accepts ProgIDs as an input string.
parent
8b347b2a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
compobj.c
dlls/ole32/compobj.c
+12
-5
No files found.
dlls/ole32/compobj.c
View file @
2cfb02a5
...
...
@@ -438,7 +438,7 @@ BOOL WINAPI IsEqualGUID32(
/******************************************************************************
* CLSIDFromString16 [COMPOBJ.20]
* Converts a unique identifier from it
'
s string representation into
* Converts a unique identifier from its string representation into
* the GUID struct.
*
* Class id: DWORD-WORD-WORD-BYTES[2]-BYTES[6]
...
...
@@ -731,8 +731,12 @@ sizeof((i).ifr_name)+(i).ifr_addr.sa_len)
/******************************************************************************
* CLSIDFromString [OLE32.3]
* Converts a unique identifier from it
'
s string representation into
* Converts a unique identifier from its string representation into
* the GUID struct.
*
* UNDOCUMENTED
* If idstr is not a valid CLSID string then it gets treated as a ProgID
*
* RETURNS
* the converted GUID
*/
...
...
@@ -744,6 +748,9 @@ HRESULT WINAPI CLSIDFromString(
OLESTATUS
ret
=
CLSIDFromString16
(
xid
,
id
);
HeapFree
(
GetProcessHeap
(),
0
,
xid
);
if
(
ret
!=
S_OK
)
{
/* It appears a ProgID is also valid */
ret
=
CLSIDFromProgID
(
idstr
,
id
);
}
return
ret
;
}
...
...
@@ -1220,7 +1227,7 @@ HRESULT WINAPI CoRegisterClassObject(
newClass
->
nextClass
=
firstRegisteredClass
;
/*
* Since we're making a copy of the object pointer, we have to increase it
'
s
* Since we're making a copy of the object pointer, we have to increase its
* reference count.
*/
newClass
->
classObject
=
pUnk
;
...
...
@@ -1391,7 +1398,7 @@ HRESULT WINAPI CoGetClassObject(REFCLSID rclsid, DWORD dwClsContext,
}
/*
* Ask the DLL for it
'
s class object. (there was a note here about class
* Ask the DLL for its class object. (there was a note here about class
* factories but this is good.
*/
return
DllGetClassObject
(
rclsid
,
iid
,
ppv
);
...
...
@@ -1591,7 +1598,7 @@ HRESULT WINAPI CoCreateInstanceEx(
}
/*
* Get the object and get it
'
s IUnknown pointer.
* Get the object and get its IUnknown pointer.
*/
hr
=
CoCreateInstance
(
rclsid
,
pUnkOuter
,
...
...
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