Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
101de22a
Commit
101de22a
authored
Aug 25, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Flush before returning from any storage API call that writes.
parent
9ea1d13d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
stg_stream.c
dlls/ole32/stg_stream.c
+7
-0
storage32.c
dlls/ole32/storage32.c
+10
-2
No files found.
dlls/ole32/stg_stream.c
View file @
101de22a
...
...
@@ -295,6 +295,9 @@ static HRESULT WINAPI StgStreamImpl_Write(
*/
This
->
currentPosition
.
u
.
LowPart
+=
*
pcbWritten
;
if
(
SUCCEEDED
(
res
))
res
=
StorageBaseImpl_Flush
(
This
->
parentStorage
);
TRACE
(
"<-- S_OK, written %u
\n
"
,
*
pcbWritten
);
return
res
;
}
...
...
@@ -417,6 +420,10 @@ static HRESULT WINAPI StgStreamImpl_SetSize(
}
hr
=
StorageBaseImpl_StreamSetSize
(
This
->
parentStorage
,
This
->
dirEntry
,
libNewSize
);
if
(
SUCCEEDED
(
hr
))
hr
=
StorageBaseImpl_Flush
(
This
->
parentStorage
);
return
hr
;
}
...
...
dlls/ole32/storage32.c
View file @
101de22a
...
...
@@ -856,7 +856,7 @@ static HRESULT WINAPI StorageBaseImpl_RenameElement(
return
STG_E_FILENOTFOUND
;
}
return
S
_OK
;
return
S
torageBaseImpl_Flush
(
This
)
;
}
/************************************************************************
...
...
@@ -1011,7 +1011,7 @@ static HRESULT WINAPI StorageBaseImpl_CreateStream(
return
STG_E_INSUFFICIENTMEMORY
;
}
return
S
_OK
;
return
S
torageBaseImpl_Flush
(
This
)
;
}
/************************************************************************
...
...
@@ -1047,6 +1047,9 @@ static HRESULT WINAPI StorageBaseImpl_SetClass(
&
currentEntry
);
}
if
(
SUCCEEDED
(
hRes
))
hRes
=
StorageBaseImpl_Flush
(
This
);
return
hRes
;
}
...
...
@@ -1203,6 +1206,8 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage(
return
hr
;
}
if
(
SUCCEEDED
(
hr
))
hr
=
StorageBaseImpl_Flush
(
This
);
return
S_OK
;
}
...
...
@@ -1916,6 +1921,9 @@ static HRESULT WINAPI StorageBaseImpl_DestroyElement(
if
(
SUCCEEDED
(
hr
))
StorageBaseImpl_DestroyDirEntry
(
This
,
entryToDeleteRef
);
if
(
SUCCEEDED
(
hr
))
hr
=
StorageBaseImpl_Flush
(
This
);
return
hr
;
}
...
...
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