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
3cd3ca68
Commit
3cd3ca68
authored
Nov 26, 2006
by
Kirill K. Smirnov
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix logic in Storage32Impl_SmallBlocksToBigBlocks function.
parent
532f57a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
storage32.c
dlls/ole32/storage32.c
+5
-6
No files found.
dlls/ole32/storage32.c
View file @
3cd3ca68
...
...
@@ -3555,7 +3555,8 @@ BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks(
{
ULONG
bbHeadOfChain
=
BLOCK_END_OF_CHAIN
;
ULARGE_INTEGER
size
,
offset
;
ULONG
cbRead
,
cbWritten
,
cbTotalRead
,
cbTotalWritten
;
ULONG
cbRead
,
cbWritten
;
ULARGE_INTEGER
cbTotalRead
;
ULONG
propertyIndex
;
HRESULT
resWrite
=
S_OK
;
HRESULT
resRead
;
...
...
@@ -3585,8 +3586,7 @@ BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks(
*/
offset
.
u
.
LowPart
=
0
;
offset
.
u
.
HighPart
=
0
;
cbTotalRead
=
0
;
cbTotalWritten
=
0
;
cbTotalRead
.
QuadPart
=
0
;
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
DEF_SMALL_BLOCK_SIZE
);
do
...
...
@@ -3601,7 +3601,7 @@ BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks(
if
(
cbRead
>
0
)
{
cbTotalRead
+=
cbRead
;
cbTotalRead
.
QuadPart
+=
cbRead
;
resWrite
=
BlockChainStream_WriteAt
(
bbTempChain
,
offset
,
...
...
@@ -3612,10 +3612,9 @@ BlockChainStream* Storage32Impl_SmallBlocksToBigBlocks(
if
(
FAILED
(
resWrite
))
break
;
cbTotalWritten
+=
cbWritten
;
offset
.
u
.
LowPart
+=
This
->
smallBlockSize
;
}
}
while
(
cb
Read
>
0
);
}
while
(
cb
TotalRead
.
QuadPart
<
size
.
QuadPart
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
if
(
FAILED
(
resRead
)
||
FAILED
(
resWrite
))
...
...
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