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
bfaae9bf
Commit
bfaae9bf
authored
Nov 16, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Added SHPropStgCreate implementation.
parent
14b13f77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
2 deletions
+42
-2
shellole.c
dlls/shell32/shellole.c
+42
-2
No files found.
dlls/shell32/shellole.c
View file @
bfaae9bf
...
...
@@ -26,6 +26,7 @@
#include <string.h>
#define COBJMACROS
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
...
...
@@ -665,8 +666,47 @@ HRESULT WINAPI SHPropStgCreate(IPropertySetStorage *psstg, REFFMTID fmtid,
const
CLSID
*
pclsid
,
DWORD
grfFlags
,
DWORD
grfMode
,
DWORD
dwDisposition
,
IPropertyStorage
**
ppstg
,
UINT
*
puCodePage
)
{
FIXME
(
"stub
\n
"
);
return
E_NOTIMPL
;
PROPSPEC
prop
;
PROPVARIANT
ret
;
HRESULT
hres
;
TRACE
(
"%p %s %s %x %x %x %p %p
\n
"
,
psstg
,
debugstr_guid
(
fmtid
),
debugstr_guid
(
pclsid
),
grfFlags
,
grfMode
,
dwDisposition
,
ppstg
,
puCodePage
);
hres
=
IPropertySetStorage_Open
(
psstg
,
fmtid
,
grfMode
,
ppstg
);
switch
(
dwDisposition
)
{
case
CREATE_ALWAYS
:
if
(
SUCCEEDED
(
hres
))
{
IPropertyStorage_Release
(
*
ppstg
);
hres
=
IPropertySetStorage_Delete
(
psstg
,
fmtid
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
E_FAIL
;
}
case
OPEN_ALWAYS
:
case
CREATE_NEW
:
if
(
FAILED
(
hres
))
hres
=
IPropertySetStorage_Create
(
psstg
,
fmtid
,
pclsid
,
grfFlags
,
grfMode
,
ppstg
);
case
OPEN_EXISTING
:
if
(
FAILED
(
hres
))
return
hres
;
if
(
puCodePage
)
{
prop
.
ulKind
=
PRSPEC_PROPID
;
prop
.
u
.
propid
=
PID_CODEPAGE
;
hres
=
IPropertyStorage_ReadMultiple
(
*
ppstg
,
1
,
&
prop
,
&
ret
);
if
(
FAILED
(
hres
)
||
ret
.
vt
!=
VT_I2
)
*
puCodePage
=
0
;
else
*
puCodePage
=
ret
.
u
.
iVal
;
}
}
return
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