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
df0ef756
Commit
df0ef756
authored
Nov 30, 2009
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add an attribute to StorageBaseImpl to track its reverted status.
parent
5b79c5a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
10 deletions
+23
-10
storage32.c
dlls/ole32/storage32.c
+18
-10
storage32.h
dlls/ole32/storage32.h
+5
-0
No files found.
dlls/ole32/storage32.c
View file @
df0ef756
...
...
@@ -425,7 +425,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStream(
goto
end
;
}
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
{
res
=
STG_E_REVERTED
;
goto
end
;
...
...
@@ -553,7 +553,7 @@ static HRESULT WINAPI StorageBaseImpl_OpenStorage(
goto
end
;
}
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
return
STG_E_REVERTED
;
/*
...
...
@@ -638,7 +638,7 @@ static HRESULT WINAPI StorageBaseImpl_EnumElements(
if
(
(
This
==
0
)
||
(
ppenum
==
0
))
return
E_INVALIDARG
;
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
return
STG_E_REVERTED
;
newEnum
=
IEnumSTATSTGImpl_Construct
(
...
...
@@ -682,7 +682,7 @@ static HRESULT WINAPI StorageBaseImpl_Stat(
goto
end
;
}
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
{
res
=
STG_E_REVERTED
;
goto
end
;
...
...
@@ -733,7 +733,7 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
TRACE
(
"(%p, %s, %s)
\n
"
,
iface
,
debugstr_w
(
pwcsOldName
),
debugstr_w
(
pwcsNewName
));
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
return
STG_E_REVERTED
;
currentEntryRef
=
findElement
(
This
->
ancestorStorage
,
...
...
@@ -830,7 +830,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
if
(
STGM_SHARE_MODE
(
grfMode
)
!=
STGM_SHARE_EXCLUSIVE
)
return
STG_E_INVALIDFLAG
;
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
return
STG_E_REVERTED
;
/*
...
...
@@ -959,7 +959,7 @@ static HRESULT WINAPI StorageBaseImpl_SetClass(
TRACE
(
"(%p, %p)
\n
"
,
iface
,
clsid
);
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
return
STG_E_REVERTED
;
hRes
=
StorageBaseImpl_ReadDirEntry
(
This
,
...
...
@@ -1028,7 +1028,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage(
return
STG_E_INVALIDFLAG
;
}
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
return
STG_E_REVERTED
;
/*
...
...
@@ -1772,7 +1772,7 @@ static HRESULT WINAPI StorageBaseImpl_DestroyElement(
if
(
pwcsName
==
NULL
)
return
STG_E_INVALIDPOINTER
;
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
return
STG_E_REVERTED
;
if
(
STGM_ACCESS_MODE
(
This
->
openFlags
)
==
STGM_READ
)
...
...
@@ -2173,7 +2173,7 @@ static HRESULT WINAPI StorageBaseImpl_SetStateBits(
{
StorageBaseImpl
*
const
This
=
(
StorageBaseImpl
*
)
iface
;
if
(
!
This
->
ancestorStorage
)
if
(
This
->
reverted
)
return
STG_E_REVERTED
;
This
->
stateBits
=
(
This
->
stateBits
&
~
grfMask
)
|
(
grfStateBits
&
grfMask
);
...
...
@@ -2465,6 +2465,8 @@ static HRESULT StorageImpl_Construct(
*/
This
->
base
.
ancestorStorage
=
This
;
This
->
base
.
reverted
=
0
;
This
->
hFile
=
hFile
;
if
(
pwcsName
)
{
...
...
@@ -3826,6 +3828,10 @@ static void StorageInternalImpl_Invalidate( StorageInternalImpl *This )
This
->
base
.
ancestorStorage
=
NULL
;
This
->
base
.
reverted
=
1
;
This
->
parentStorage
=
NULL
;
StorageBaseImpl_DeleteAll
(
&
This
->
base
);
list_remove
(
&
This
->
ParentListEntry
);
...
...
@@ -4387,6 +4393,8 @@ static StorageInternalImpl* StorageInternalImpl_Construct(
*/
newStorage
->
base
.
ancestorStorage
=
parentStorage
->
ancestorStorage
;
newStorage
->
base
.
reverted
=
0
;
newStorage
->
parentStorage
=
parentStorage
;
/*
...
...
dlls/ole32/storage32.h
View file @
df0ef756
...
...
@@ -219,6 +219,11 @@ struct StorageBaseImpl
StorageImpl
*
ancestorStorage
;
/*
* TRUE if this object has been invalidated
*/
int
reverted
;
/*
* Index of the directory entry of this storage
*/
DirRef
storageDirEntry
;
...
...
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