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
0faf1558
Commit
0faf1558
authored
May 29, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Jun 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Store the creation flag - STGM_SIMPLE depends on this.
parent
8b7b6771
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
storage32.c
dlls/ole32/storage32.c
+1
-13
storage32.h
dlls/ole32/storage32.h
+2
-0
No files found.
dlls/ole32/storage32.c
View file @
0faf1558
...
...
@@ -2407,19 +2407,13 @@ static HRESULT StorageImpl_Construct(
memset
(
This
,
0
,
sizeof
(
StorageImpl
));
/*
* Initialize stream list
*/
list_init
(
&
This
->
base
.
strmHead
);
/*
* Initialize the virtual function table.
*/
This
->
base
.
lpVtbl
=
&
Storage32Impl_Vtbl
;
This
->
base
.
pssVtbl
=
&
IPropertySetStorage_Vtbl
;
This
->
base
.
v_destructor
=
StorageImpl_Destroy
;
This
->
base
.
openFlags
=
(
openFlags
&
~
STGM_CREATE
);
This
->
create
=
create
;
/*
* This is the top-level storage so initialize the ancestor pointer
...
...
@@ -2427,14 +2421,8 @@ static HRESULT StorageImpl_Construct(
*/
This
->
base
.
ancestorStorage
=
This
;
/*
* Initialize the physical support of the storage.
*/
This
->
hFile
=
hFile
;
/*
* Store copy of file path.
*/
if
(
pwcsName
)
{
This
->
pwcsName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
pwcsName
)
+
1
)
*
sizeof
(
WCHAR
));
...
...
dlls/ole32/storage32.h
View file @
0faf1558
...
...
@@ -255,6 +255,8 @@ struct StorageImpl
*/
HANDLE
hFile
;
/* Physical support for the Docfile */
LPOLESTR
pwcsName
;
/* Full path of the document file */
BOOL
create
;
/* Was the storage created or opened.
The behaviour of STGM_SIMPLE depends on this */
/* FIXME: should this be in Storage32BaseImpl ? */
WCHAR
filename
[
PROPERTY_NAME_BUFFER_LEN
];
...
...
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