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
2fe86fb7
Commit
2fe86fb7
authored
Apr 23, 2009
by
Austin English
Committed by
Alexandre Julliard
Apr 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Rename a macro to prevent a conflict on NetBSD.
parent
32924bd6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
stg_prop.c
dlls/ole32/stg_prop.c
+1
-1
storage32.c
dlls/ole32/storage32.c
+3
-3
storage32.h
dlls/ole32/storage32.h
+4
-4
No files found.
dlls/ole32/stg_prop.c
View file @
2fe86fb7
...
...
@@ -967,7 +967,7 @@ static void PropertyStorage_PropertyDestroy(void *k, void *d, void *extra)
#ifdef WORDS_BIGENDIAN
/* Swaps each character in str to or from little endian; assumes the conversion
* is symmetric, that is, that le16toh is equivalent to htole16.
* is symmetric, that is, that le
ndian
16toh is equivalent to htole16.
*/
static
void
PropertyStorage_ByteSwapString
(
LPWSTR
str
,
size_t
len
)
{
...
...
dlls/ole32/storage32.c
View file @
2fe86fb7
...
...
@@ -3472,7 +3472,7 @@ static BOOL StorageImpl_ReadDWordFromBigBlock(
ulOffset
.
u
.
LowPart
+=
offset
;
StorageImpl_ReadAt
(
This
,
ulOffset
,
&
tmp
,
sizeof
(
DWORD
),
&
read
);
*
value
=
le32toh
(
tmp
);
*
value
=
le
ndian
32toh
(
tmp
);
return
(
read
==
sizeof
(
DWORD
));
}
...
...
@@ -4250,7 +4250,7 @@ void StorageUtl_ReadWord(const BYTE* buffer, ULONG offset, WORD* value)
WORD
tmp
;
memcpy
(
&
tmp
,
buffer
+
offset
,
sizeof
(
WORD
));
*
value
=
le16toh
(
tmp
);
*
value
=
le
ndian
16toh
(
tmp
);
}
void
StorageUtl_WriteWord
(
BYTE
*
buffer
,
ULONG
offset
,
WORD
value
)
...
...
@@ -4264,7 +4264,7 @@ void StorageUtl_ReadDWord(const BYTE* buffer, ULONG offset, DWORD* value)
DWORD
tmp
;
memcpy
(
&
tmp
,
buffer
+
offset
,
sizeof
(
DWORD
));
*
value
=
le32toh
(
tmp
);
*
value
=
le
ndian
32toh
(
tmp
);
}
void
StorageUtl_WriteDWord
(
BYTE
*
buffer
,
ULONG
offset
,
DWORD
value
)
...
...
dlls/ole32/storage32.h
View file @
2fe86fb7
...
...
@@ -376,15 +376,15 @@ StgStreamImpl* StgStreamImpl_Construct(
#define htole32(x) RtlUlongByteSwap(x)
#define htole16(x) RtlUshortByteSwap(x)
#define le32toh(x) RtlUlongByteSwap(x)
#define le16toh(x) RtlUshortByteSwap(x)
#define le
ndian
32toh(x) RtlUlongByteSwap(x)
#define le
ndian
16toh(x) RtlUshortByteSwap(x)
#else
#define htole32(x) (x)
#define htole16(x) (x)
#define le32toh(x) (x)
#define le16toh(x) (x)
#define le
ndian
32toh(x) (x)
#define le
ndian
16toh(x) (x)
#endif
...
...
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