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
3b956880
Commit
3b956880
authored
Apr 19, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 19, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Remove some casts that are not needed.
parent
5132f602
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
16 deletions
+9
-16
storage32.c
dlls/ole32/storage32.c
+9
-16
No files found.
dlls/ole32/storage32.c
View file @
3b956880
...
...
@@ -2615,9 +2615,7 @@ static HRESULT StorageImpl_StreamWriteAt(StorageBaseImpl *base, DirRef index,
stream
=
*
StorageImpl_GetCachedBlockChainStream
(
This
,
index
);
if
(
!
stream
)
return
E_OUTOFMEMORY
;
hr
=
BlockChainStream_WriteAt
(
stream
,
offset
,
size
,
buffer
,
bytesWritten
);
return
hr
;
return
BlockChainStream_WriteAt
(
stream
,
offset
,
size
,
buffer
,
bytesWritten
);
}
}
...
...
@@ -3008,7 +3006,7 @@ end:
}
else
{
StorageImpl_Flush
(
(
StorageBaseImpl
*
)
This
);
StorageImpl_Flush
(
&
This
->
base
);
*
result
=
This
;
}
...
...
@@ -3048,9 +3046,9 @@ static void StorageImpl_Destroy(StorageBaseImpl* iface)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
static
HRESULT
StorageImpl_Flush
(
StorageBaseImpl
*
ifac
e
)
static
HRESULT
StorageImpl_Flush
(
StorageBaseImpl
*
storag
e
)
{
StorageImpl
*
This
=
(
StorageImpl
*
)
ifac
e
;
StorageImpl
*
This
=
(
StorageImpl
*
)
storag
e
;
int
i
;
HRESULT
hr
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -3851,20 +3849,17 @@ HRESULT StorageImpl_ReadRawDirEntry(StorageImpl *This, ULONG index, BYTE *buffer
HRESULT
StorageImpl_WriteRawDirEntry
(
StorageImpl
*
This
,
ULONG
index
,
const
BYTE
*
buffer
)
{
ULARGE_INTEGER
offset
;
HRESULT
hr
;
ULONG
bytesRead
;
offset
.
u
.
HighPart
=
0
;
offset
.
u
.
LowPart
=
index
*
RAW_DIRENTRY_SIZE
;
hr
=
BlockChainStream_WriteAt
(
return
BlockChainStream_WriteAt
(
This
->
rootBlockChain
,
offset
,
RAW_DIRENTRY_SIZE
,
buffer
,
&
bytesRead
);
return
hr
;
}
/******************************************************************************
...
...
@@ -4036,13 +4031,11 @@ HRESULT StorageImpl_WriteDirEntry(
DirRef
index
,
const
DirEntry
*
buffer
)
{
BYTE
currentEntry
[
RAW_DIRENTRY_SIZE
];
HRESULT
writeRes
;
BYTE
currentEntry
[
RAW_DIRENTRY_SIZE
];
UpdateRawDirEntry
(
currentEntry
,
buffer
);
writeRes
=
StorageImpl_WriteRawDirEntry
(
This
,
index
,
currentEntry
);
return
writeRes
;
return
StorageImpl_WriteRawDirEntry
(
This
,
index
,
currentEntry
);
}
static
BOOL
StorageImpl_ReadBigBlock
(
...
...
@@ -5187,7 +5180,7 @@ static HRESULT TransactedSnapshotImpl_Construct(StorageBaseImpl *parentStorage,
/* parentStorage already has 1 reference, which we take over here. */
(
*
result
)
->
transactedParent
=
parentStorage
;
parentStorage
->
transactedChild
=
(
StorageBaseImpl
*
)
*
result
;
parentStorage
->
transactedChild
=
&
(
*
result
)
->
base
;
(
*
result
)
->
base
.
storageDirEntry
=
TransactedSnapshotImpl_CreateStubEntry
(
*
result
,
parentStorage
->
storageDirEntry
);
}
...
...
@@ -5199,7 +5192,7 @@ static HRESULT TransactedSnapshotImpl_Construct(StorageBaseImpl *parentStorage,
}
}
if
(
FAILED
(
hr
))
HeapFree
(
GetProcessHeap
(),
0
,
(
*
result
)
);
if
(
FAILED
(
hr
))
HeapFree
(
GetProcessHeap
(),
0
,
*
result
);
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