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
4f6e2453
Commit
4f6e2453
authored
Oct 28, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Oct 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename StorageImpl_CreateStorage to StorageBaseImpl_CreateStorage.
We don't just use the function for StorageImpl.
parent
f82924ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
storage32.c
dlls/ole32/storage32.c
+12
-12
No files found.
dlls/ole32/storage32.c
View file @
4f6e2453
...
...
@@ -1009,13 +1009,13 @@ static HRESULT WINAPI StorageBaseImpl_SetClass(
*/
/************************************************************************
* Storage32Impl_CreateStorage (IStorage)
* Storage32
Base
Impl_CreateStorage (IStorage)
*
* This method will create the storage object within the provided storage.
*
* See Windows documentation for more details on IStorage methods.
*/
static
HRESULT
WINAPI
StorageImpl_CreateStorage
(
static
HRESULT
WINAPI
Storage
Base
Impl_CreateStorage
(
IStorage
*
iface
,
const
OLECHAR
*
pwcsName
,
/* [string][in] */
DWORD
grfMode
,
/* [in] */
...
...
@@ -1023,7 +1023,7 @@ static HRESULT WINAPI StorageImpl_CreateStorage(
DWORD
reserved2
,
/* [in] */
IStorage
**
ppstg
)
/* [out] */
{
Storage
Impl
*
const
This
=
(
Storag
eImpl
*
)
iface
;
Storage
BaseImpl
*
const
This
=
(
StorageBas
eImpl
*
)
iface
;
StgProperty
currentProperty
;
StgProperty
newProperty
;
...
...
@@ -1053,14 +1053,14 @@ static HRESULT WINAPI StorageImpl_CreateStorage(
/*
* Check that we're compatible with the parent's storage mode
*/
if
(
STGM_ACCESS_MODE
(
grfMode
)
>
STGM_ACCESS_MODE
(
This
->
base
.
openFlags
)
)
if
(
STGM_ACCESS_MODE
(
grfMode
)
>
STGM_ACCESS_MODE
(
This
->
openFlags
)
)
{
WARN
(
"access denied
\n
"
);
return
STG_E_ACCESSDENIED
;
}
foundPropertyIndex
=
findElement
(
This
->
base
.
ancestorStorage
,
This
->
base
.
rootPropertySetIndex
,
foundPropertyIndex
=
findElement
(
This
->
ancestorStorage
,
This
->
rootPropertySetIndex
,
pwcsName
,
&
currentProperty
);
...
...
@@ -1070,7 +1070,7 @@ static HRESULT WINAPI StorageImpl_CreateStorage(
* An element with this name already exists
*/
if
(
STGM_CREATE_MODE
(
grfMode
)
==
STGM_CREATE
&&
STGM_ACCESS_MODE
(
This
->
base
.
openFlags
)
!=
STGM_READ
)
STGM_ACCESS_MODE
(
This
->
openFlags
)
!=
STGM_READ
)
{
hr
=
IStorage_DestroyElement
(
iface
,
pwcsName
);
if
(
FAILED
(
hr
))
...
...
@@ -1082,7 +1082,7 @@ static HRESULT WINAPI StorageImpl_CreateStorage(
return
STG_E_FILEALREADYEXISTS
;
}
}
else
if
(
STGM_ACCESS_MODE
(
This
->
base
.
openFlags
)
==
STGM_READ
)
else
if
(
STGM_ACCESS_MODE
(
This
->
openFlags
)
==
STGM_READ
)
{
WARN
(
"read-only storage
\n
"
);
return
STG_E_ACCESSDENIED
;
...
...
@@ -1122,13 +1122,13 @@ static HRESULT WINAPI StorageImpl_CreateStorage(
/*
* Save the new property into a new property spot
*/
createDirEntry
(
This
->
base
.
ancestorStorage
,
&
newProperty
,
&
newPropertyIndex
);
createDirEntry
(
This
->
ancestorStorage
,
&
newProperty
,
&
newPropertyIndex
);
/*
* Find a spot in the property chain for our newly created property.
*/
updatePropertyChain
(
&
This
->
base
,
This
,
newPropertyIndex
,
newProperty
);
...
...
@@ -2139,7 +2139,7 @@ static const IStorageVtbl Storage32Impl_Vtbl =
StorageBaseImpl_Release
,
StorageBaseImpl_CreateStream
,
StorageBaseImpl_OpenStream
,
StorageImpl_CreateStorage
,
Storage
Base
Impl_CreateStorage
,
StorageBaseImpl_OpenStorage
,
StorageImpl_CopyTo
,
StorageImpl_MoveElementTo
,
...
...
@@ -3947,7 +3947,7 @@ static const IStorageVtbl Storage32InternalImpl_Vtbl =
StorageBaseImpl_Release
,
StorageBaseImpl_CreateStream
,
StorageBaseImpl_OpenStream
,
StorageImpl_CreateStorage
,
Storage
Base
Impl_CreateStorage
,
StorageBaseImpl_OpenStorage
,
StorageImpl_CopyTo
,
StorageImpl_MoveElementTo
,
...
...
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