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
2db5418e
Commit
2db5418e
authored
Apr 07, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Apr 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Get CLSID from IStorage object in WriteFmtUserTypeStg.
parent
046d7c6d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
storage32.c
dlls/ole32/storage32.c
+7
-6
No files found.
dlls/ole32/storage32.c
View file @
2db5418e
...
...
@@ -8760,9 +8760,10 @@ static HRESULT STORAGE_WriteCompObj( LPSTORAGE pstg, CLSID *clsid,
HRESULT
WINAPI
WriteFmtUserTypeStg
(
LPSTORAGE
pstg
,
CLIPFORMAT
cf
,
LPOLESTR
lpszUserType
)
{
STATSTG
stat
;
HRESULT
r
;
WCHAR
szwClipName
[
0x40
];
CLSID
clsid
=
CLSID_NULL
;
CLSID
clsid
;
LPWSTR
wstrProgID
=
NULL
;
DWORD
n
;
...
...
@@ -8778,12 +8779,12 @@ HRESULT WINAPI WriteFmtUserTypeStg(
TRACE
(
"Clipboard name is %s
\n
"
,
debugstr_w
(
szwClipName
));
/* FIXME: There's room to save a CLSID and its ProgID, but
the CLSID is not looked up in the registry and in all the
tests I wrote it was CLSID_NULL. Where does it come from?
*/
r
=
IStorage_Stat
(
pstg
,
&
stat
,
STATFLAG_NONAME
);
if
(
SUCCEEDED
(
r
))
clsid
=
stat
.
clsid
;
else
clsid
=
CLSID_NULL
;
/* get the real program ID. This may fail, but that's fine */
ProgIDFromCLSID
(
&
clsid
,
&
wstrProgID
);
TRACE
(
"progid is %s
\n
"
,
debugstr_w
(
wstrProgID
));
...
...
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