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
d34ec97a
Commit
d34ec97a
authored
Dec 12, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Get rid of casts in 64-bit int serialization helper.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
31c41d98
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
stg_prop.c
dlls/ole32/stg_prop.c
+2
-3
storage32.c
dlls/ole32/storage32.c
+3
-4
storage32.h
dlls/ole32/storage32.h
+1
-2
No files found.
dlls/ole32/stg_prop.c
View file @
d34ec97a
...
...
@@ -1981,9 +1981,8 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This,
{
FILETIME
temp
;
StorageUtl_WriteULargeInteger
((
BYTE
*
)
&
temp
,
0
,
(
const
ULARGE_INTEGER
*
)
&
var
->
u
.
filetime
);
hr
=
IStream_Write
(
This
->
stm
,
&
temp
,
sizeof
(
FILETIME
),
&
count
);
StorageUtl_WriteULargeInteger
(
&
temp
,
0
,
(
const
ULARGE_INTEGER
*
)
&
var
->
u
.
filetime
);
hr
=
IStream_Write
(
This
->
stm
,
&
temp
,
sizeof
(
temp
),
&
count
);
bytesWritten
=
count
;
break
;
}
...
...
dlls/ole32/storage32.c
View file @
d34ec97a
...
...
@@ -6982,17 +6982,16 @@ void StorageUtl_ReadULargeInteger(const BYTE* buffer, ULONG offset,
#endif
}
void
StorageUtl_WriteULargeInteger
(
BYTE
*
buffer
,
ULONG
offset
,
const
ULARGE_INTEGER
*
value
)
void
StorageUtl_WriteULargeInteger
(
void
*
buffer
,
ULONG
offset
,
const
ULARGE_INTEGER
*
value
)
{
#ifdef WORDS_BIGENDIAN
ULARGE_INTEGER
tmp
;
tmp
.
u
.
LowPart
=
htole32
(
value
->
u
.
HighPart
);
tmp
.
u
.
HighPart
=
htole32
(
value
->
u
.
LowPart
);
memcpy
(
buffer
+
offset
,
&
tmp
,
sizeof
(
ULARGE_INTEGER
));
memcpy
(
(
BYTE
*
)
buffer
+
offset
,
&
tmp
,
sizeof
(
ULARGE_INTEGER
));
#else
memcpy
(
buffer
+
offset
,
value
,
sizeof
(
ULARGE_INTEGER
));
memcpy
(
(
BYTE
*
)
buffer
+
offset
,
value
,
sizeof
(
ULARGE_INTEGER
));
#endif
}
...
...
dlls/ole32/storage32.h
View file @
d34ec97a
...
...
@@ -561,8 +561,7 @@ void StorageUtl_ReadDWord(const BYTE* buffer, ULONG offset, DWORD* value) DECLSP
void
StorageUtl_WriteDWord
(
void
*
buffer
,
ULONG
offset
,
DWORD
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_ReadULargeInteger
(
const
BYTE
*
buffer
,
ULONG
offset
,
ULARGE_INTEGER
*
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_WriteULargeInteger
(
BYTE
*
buffer
,
ULONG
offset
,
const
ULARGE_INTEGER
*
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_WriteULargeInteger
(
void
*
buffer
,
ULONG
offset
,
const
ULARGE_INTEGER
*
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_ReadGUID
(
const
BYTE
*
buffer
,
ULONG
offset
,
GUID
*
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_WriteGUID
(
void
*
buffer
,
ULONG
offset
,
const
GUID
*
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_CopyDirEntryToSTATSTG
(
StorageBaseImpl
*
storage
,
STATSTG
*
destination
,
...
...
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