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
2507264e
Commit
2507264e
authored
May 14, 2005
by
Juan Lang
Committed by
Alexandre Julliard
May 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- maintain proper byte order
- maintain PROPSETFLAG_ANSI flag based on codepage - update comments
parent
2ed3c407
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
stg_prop.c
dlls/ole32/stg_prop.c
+0
-0
storage32.c
dlls/ole32/storage32.c
+28
-0
storage32.h
dlls/ole32/storage32.h
+4
-0
No files found.
dlls/ole32/stg_prop.c
View file @
2507264e
This diff is collapsed.
Click to expand it.
dlls/ole32/storage32.c
View file @
2507264e
...
...
@@ -4123,6 +4123,34 @@ void StorageUtl_WriteDWord(BYTE* buffer, ULONG offset, DWORD value)
memcpy
(
buffer
+
offset
,
&
value
,
sizeof
(
DWORD
));
}
void
StorageUtl_ReadULargeInteger
(
const
BYTE
*
buffer
,
ULONG
offset
,
ULARGE_INTEGER
*
value
)
{
#ifdef WORDS_BIGENDIAN
ULARGE_INTEGER
tmp
;
memcpy
(
&
tmp
,
buffer
+
offset
,
sizeof
(
ULARGE_INTEGER
));
value
->
LowPart
=
htole32
(
tmp
.
HighPart
);
value
->
HighPart
=
htole32
(
tmp
.
LowPart
);
#else
memcpy
(
value
,
buffer
+
offset
,
sizeof
(
ULARGE_INTEGER
));
#endif
}
void
StorageUtl_WriteULargeInteger
(
BYTE
*
buffer
,
ULONG
offset
,
const
ULARGE_INTEGER
*
value
)
{
#ifdef WORDS_BIGENDIAN
ULARGE_INTEGER
tmp
;
tmp
.
LowPart
=
htole32
(
value
->
HighPart
);
tmp
.
HighPart
=
htole32
(
value
->
LowPart
);
memcpy
(
buffer
+
offset
,
&
tmp
,
sizeof
(
ULARGE_INTEGER
));
#else
memcpy
(
buffer
+
offset
,
value
,
sizeof
(
ULARGE_INTEGER
));
#endif
}
void
StorageUtl_ReadGUID
(
const
BYTE
*
buffer
,
ULONG
offset
,
GUID
*
value
)
{
StorageUtl_ReadDWord
(
buffer
,
offset
,
&
(
value
->
Data1
));
...
...
dlls/ole32/storage32.h
View file @
2507264e
...
...
@@ -560,6 +560,10 @@ void StorageUtl_ReadWord(const BYTE* buffer, ULONG offset, WORD* value);
void
StorageUtl_WriteWord
(
BYTE
*
buffer
,
ULONG
offset
,
WORD
value
);
void
StorageUtl_ReadDWord
(
const
BYTE
*
buffer
,
ULONG
offset
,
DWORD
*
value
);
void
StorageUtl_WriteDWord
(
BYTE
*
buffer
,
ULONG
offset
,
DWORD
value
);
void
StorageUtl_ReadULargeInteger
(
const
BYTE
*
buffer
,
ULONG
offset
,
ULARGE_INTEGER
*
value
);
void
StorageUtl_WriteULargeInteger
(
BYTE
*
buffer
,
ULONG
offset
,
const
ULARGE_INTEGER
*
value
);
void
StorageUtl_ReadGUID
(
const
BYTE
*
buffer
,
ULONG
offset
,
GUID
*
value
);
void
StorageUtl_WriteGUID
(
BYTE
*
buffer
,
ULONG
offset
,
const
GUID
*
value
);
void
StorageUtl_CopyPropertyToSTATSTG
(
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