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
31c41d98
Commit
31c41d98
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 GUID serialization helper.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4d605e86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
stg_prop.c
dlls/ole32/stg_prop.c
+3
-3
storage32.c
dlls/ole32/storage32.c
+2
-2
storage32.h
dlls/ole32/storage32.h
+1
-1
No files found.
dlls/ole32/stg_prop.c
View file @
31c41d98
...
...
@@ -1711,7 +1711,7 @@ static void PropertyStorage_MakeHeader(PropertyStorage_impl *This,
StorageUtl_WriteWord
(
&
hdr
->
wByteOrder
,
0
,
PROPSETHDR_BYTEORDER_MAGIC
);
StorageUtl_WriteWord
(
&
hdr
->
wFormat
,
0
,
This
->
format
);
StorageUtl_WriteDWord
(
&
hdr
->
dwOSVer
,
0
,
This
->
originatorOS
);
StorageUtl_WriteGUID
(
(
BYTE
*
)
&
hdr
->
clsid
,
0
,
&
This
->
clsid
);
StorageUtl_WriteGUID
(
&
hdr
->
clsid
,
0
,
&
This
->
clsid
);
StorageUtl_WriteDWord
(
&
hdr
->
reserved
,
0
,
1
);
}
...
...
@@ -1719,7 +1719,7 @@ static void PropertyStorage_MakeFmtIdOffset(PropertyStorage_impl *This,
FORMATIDOFFSET
*
fmtOffset
)
{
assert
(
fmtOffset
);
StorageUtl_WriteGUID
(
(
BYTE
*
)
fmtOffset
,
0
,
&
This
->
fmtid
);
StorageUtl_WriteGUID
(
fmtOffset
,
0
,
&
This
->
fmtid
);
StorageUtl_WriteDWord
(
fmtOffset
,
offsetof
(
FORMATIDOFFSET
,
dwOffset
),
sizeof
(
PROPERTYSETHEADER
)
+
sizeof
(
FORMATIDOFFSET
));
}
...
...
@@ -2008,7 +2008,7 @@ static HRESULT PropertyStorage_WritePropertyToStream(PropertyStorage_impl *This,
{
CLSID
temp
;
StorageUtl_WriteGUID
(
(
BYTE
*
)
&
temp
,
0
,
var
->
u
.
puuid
);
StorageUtl_WriteGUID
(
&
temp
,
0
,
var
->
u
.
puuid
);
hr
=
IStream_Write
(
This
->
stm
,
&
temp
,
sizeof
(
temp
),
&
count
);
bytesWritten
=
count
;
break
;
...
...
dlls/ole32/storage32.c
View file @
31c41d98
...
...
@@ -7005,13 +7005,13 @@ void StorageUtl_ReadGUID(const BYTE* buffer, ULONG offset, GUID* value)
memcpy
(
value
->
Data4
,
buffer
+
offset
+
8
,
sizeof
(
value
->
Data4
));
}
void
StorageUtl_WriteGUID
(
BYTE
*
buffer
,
ULONG
offset
,
const
GUID
*
value
)
void
StorageUtl_WriteGUID
(
void
*
buffer
,
ULONG
offset
,
const
GUID
*
value
)
{
StorageUtl_WriteDWord
(
buffer
,
offset
,
value
->
Data1
);
StorageUtl_WriteWord
(
buffer
,
offset
+
4
,
value
->
Data2
);
StorageUtl_WriteWord
(
buffer
,
offset
+
6
,
value
->
Data3
);
memcpy
(
buffer
+
offset
+
8
,
value
->
Data4
,
sizeof
(
value
->
Data4
));
memcpy
(
(
BYTE
*
)
buffer
+
offset
+
8
,
value
->
Data4
,
sizeof
(
value
->
Data4
));
}
void
StorageUtl_CopyDirEntryToSTATSTG
(
...
...
dlls/ole32/storage32.h
View file @
31c41d98
...
...
@@ -564,7 +564,7 @@ void StorageUtl_ReadULargeInteger(const BYTE* buffer, ULONG offset,
void
StorageUtl_WriteULargeInteger
(
BYTE
*
buffer
,
ULONG
offset
,
const
ULARGE_INTEGER
*
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_ReadGUID
(
const
BYTE
*
buffer
,
ULONG
offset
,
GUID
*
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_WriteGUID
(
BYTE
*
buffer
,
ULONG
offset
,
const
GUID
*
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_WriteGUID
(
void
*
buffer
,
ULONG
offset
,
const
GUID
*
value
)
DECLSPEC_HIDDEN
;
void
StorageUtl_CopyDirEntryToSTATSTG
(
StorageBaseImpl
*
storage
,
STATSTG
*
destination
,
const
DirEntry
*
source
,
int
statFlags
)
DECLSPEC_HIDDEN
;
...
...
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