Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
22befac9
Commit
22befac9
authored
Nov 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix the warnings introduced by the "unsigned long" to "ULONG" header changes.
parent
9023bc0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
marshal.c
dlls/ole32/tests/marshal.c
+14
-14
usrmarshal.c
dlls/ole32/usrmarshal.c
+5
-5
No files found.
dlls/ole32/tests/marshal.c
View file @
22befac9
...
...
@@ -2084,14 +2084,14 @@ static const char cf_marshaled[] =
static
void
test_marshal_CLIPFORMAT
(
void
)
{
unsigned
char
*
buffer
;
unsigned
long
size
;
unsigned
long
flags
=
MAKELONG
(
MSHCTX_DIFFERENTMACHINE
,
NDR_LOCAL_DATA_REPRESENTATION
);
ULONG
size
;
ULONG
flags
=
MAKELONG
(
MSHCTX_DIFFERENTMACHINE
,
NDR_LOCAL_DATA_REPRESENTATION
);
wireCLIPFORMAT
wirecf
;
CLIPFORMAT
cf
=
RegisterClipboardFormatA
(
"MyFormat"
);
CLIPFORMAT
cf2
;
size
=
CLIPFORMAT_UserSize
(
&
flags
,
0
,
&
cf
);
ok
(
size
==
sizeof
(
*
wirecf
)
+
sizeof
(
cf_marshaled
),
"Wrong size %
l
d
\n
"
,
size
);
ok
(
size
==
sizeof
(
*
wirecf
)
+
sizeof
(
cf_marshaled
),
"Wrong size %d
\n
"
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
CLIPFORMAT_UserMarshal
(
&
flags
,
buffer
,
&
cf
);
...
...
@@ -2110,14 +2110,14 @@ static void test_marshal_CLIPFORMAT(void)
static
void
test_marshal_HWND
(
void
)
{
unsigned
char
*
buffer
;
unsigned
long
size
;
unsigned
long
flags
=
MAKELONG
(
MSHCTX_LOCAL
,
NDR_LOCAL_DATA_REPRESENTATION
);
ULONG
size
;
ULONG
flags
=
MAKELONG
(
MSHCTX_LOCAL
,
NDR_LOCAL_DATA_REPRESENTATION
);
HWND
hwnd
=
GetDesktopWindow
();
HWND
hwnd2
;
wireHWND
wirehwnd
;
size
=
HWND_UserSize
(
&
flags
,
0
,
&
hwnd
);
ok
(
size
==
sizeof
(
*
wirehwnd
),
"Wrong size %
l
d
\n
"
,
size
);
ok
(
size
==
sizeof
(
*
wirehwnd
),
"Wrong size %d
\n
"
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
HWND_UserMarshal
(
&
flags
,
buffer
,
&
hwnd
);
...
...
@@ -2135,8 +2135,8 @@ static void test_marshal_HWND(void)
static
void
test_marshal_HGLOBAL
(
void
)
{
unsigned
char
*
buffer
;
unsigned
long
size
;
unsigned
long
flags
=
MAKELONG
(
MSHCTX_LOCAL
,
NDR_LOCAL_DATA_REPRESENTATION
);
ULONG
size
;
ULONG
flags
=
MAKELONG
(
MSHCTX_LOCAL
,
NDR_LOCAL_DATA_REPRESENTATION
);
HGLOBAL
hglobal
;
HGLOBAL
hglobal2
;
unsigned
char
*
wirehglobal
;
...
...
@@ -2147,7 +2147,7 @@ static void test_marshal_HGLOBAL(void)
size
=
HGLOBAL_UserSize
(
&
flags
,
0
,
&
hglobal
);
/* native is poorly programmed and allocates 4 bytes more than it needs to
* here - Wine doesn't have to emulate that */
ok
((
size
==
8
)
||
(
size
==
12
),
"Size should be 12, instead of %
l
d
\n
"
,
size
);
ok
((
size
==
8
)
||
(
size
==
12
),
"Size should be 12, instead of %d
\n
"
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
HGLOBAL_UserMarshal
(
&
flags
,
buffer
,
&
hglobal
);
wirehglobal
=
buffer
;
...
...
@@ -2168,7 +2168,7 @@ static void test_marshal_HGLOBAL(void)
size
=
HGLOBAL_UserSize
(
&
flags
,
0
,
&
hglobal
);
/* native is poorly programmed and allocates 4 bytes more than it needs to
* here - Wine doesn't have to emulate that */
ok
((
size
==
24
)
||
(
size
==
28
),
"Size should be 24 or 28, instead of %
l
d
\n
"
,
size
);
ok
((
size
==
24
)
||
(
size
==
28
),
"Size should be 24 or 28, instead of %d
\n
"
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
HGLOBAL_UserMarshal
(
&
flags
,
buffer
,
&
hglobal
);
wirehglobal
=
buffer
;
...
...
@@ -2202,8 +2202,8 @@ static HENHMETAFILE create_emf(void)
static
void
test_marshal_HENHMETAFILE
(
void
)
{
unsigned
char
*
buffer
;
unsigned
long
size
;
unsigned
long
flags
=
MAKELONG
(
MSHCTX_DIFFERENTMACHINE
,
NDR_LOCAL_DATA_REPRESENTATION
);
ULONG
size
;
ULONG
flags
=
MAKELONG
(
MSHCTX_DIFFERENTMACHINE
,
NDR_LOCAL_DATA_REPRESENTATION
);
HENHMETAFILE
hemf
;
HENHMETAFILE
hemf2
=
NULL
;
unsigned
char
*
wirehemf
;
...
...
@@ -2211,7 +2211,7 @@ static void test_marshal_HENHMETAFILE(void)
hemf
=
create_emf
();
size
=
HENHMETAFILE_UserSize
(
&
flags
,
0
,
&
hemf
);
ok
(
size
>
20
,
"size should be at least 20 bytes, not %
l
d
\n
"
,
size
);
ok
(
size
>
20
,
"size should be at least 20 bytes, not %d
\n
"
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
HENHMETAFILE_UserMarshal
(
&
flags
,
buffer
,
&
hemf
);
wirehemf
=
buffer
;
...
...
@@ -2238,7 +2238,7 @@ static void test_marshal_HENHMETAFILE(void)
hemf
=
NULL
;
size
=
HENHMETAFILE_UserSize
(
&
flags
,
0
,
&
hemf
);
ok
(
size
==
8
,
"size should be 8 bytes, not %
l
d
\n
"
,
size
);
ok
(
size
==
8
,
"size should be 8 bytes, not %d
\n
"
,
size
);
buffer
=
(
unsigned
char
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
HENHMETAFILE_UserMarshal
(
&
flags
,
buffer
,
&
hemf
);
wirehemf
=
buffer
;
...
...
dlls/ole32/usrmarshal.c
View file @
22befac9
...
...
@@ -83,7 +83,7 @@ ULONG __RPC_USER CLIPFORMAT_UserSize(ULONG *pFlags, ULONG StartingSize, CLIPFORM
{
ULONG
size
=
StartingSize
;
TRACE
(
"("
);
dump_user_flags
(
pFlags
);
TRACE
(
", %
l
d, %p
\n
"
,
StartingSize
,
pCF
);
TRACE
(
"("
);
dump_user_flags
(
pFlags
);
TRACE
(
", %d, %p
\n
"
,
StartingSize
,
pCF
);
size
+=
sizeof
(
userCLIPFORMAT
);
...
...
@@ -282,7 +282,7 @@ static void __RPC_USER handle_UserFree(ULONG *pFlags, HANDLE *phMenu)
#define IMPL_WIREM_HANDLE(type) \
ULONG __RPC_USER type##_UserSize(ULONG *pFlags, ULONG StartingSize, type *handle) \
{ \
TRACE("("); dump_user_flags(pFlags); TRACE(", %
l
d, %p\n", StartingSize, handle); \
TRACE("("); dump_user_flags(pFlags); TRACE(", %d, %p\n", StartingSize, handle); \
return handle_UserSize(pFlags, StartingSize, (HANDLE *)handle); \
} \
\
...
...
@@ -315,7 +315,7 @@ ULONG __RPC_USER HGLOBAL_UserSize(ULONG *pFlags, ULONG StartingSize, HGLOBAL *ph
{
ULONG
size
=
StartingSize
;
TRACE
(
"("
);
dump_user_flags
(
pFlags
);
TRACE
(
", %
l
d, %p
\n
"
,
StartingSize
,
phGlobal
);
TRACE
(
"("
);
dump_user_flags
(
pFlags
);
TRACE
(
", %d, %p
\n
"
,
StartingSize
,
phGlobal
);
ALIGN_LENGTH
(
size
,
3
);
...
...
@@ -531,7 +531,7 @@ ULONG __RPC_USER HENHMETAFILE_UserSize(ULONG *pFlags, ULONG StartingSize, HENHME
{
ULONG
size
=
StartingSize
;
TRACE
(
"("
);
dump_user_flags
(
pFlags
);
TRACE
(
", %
l
d, %p
\n
"
,
StartingSize
,
*
phEmf
);
TRACE
(
"("
);
dump_user_flags
(
pFlags
);
TRACE
(
", %d, %p
\n
"
,
StartingSize
,
*
phEmf
);
size
+=
sizeof
(
ULONG
);
if
(
LOWORD
(
*
pFlags
)
==
MSHCTX_INPROC
)
...
...
@@ -647,7 +647,7 @@ ULONG __RPC_USER STGMEDIUM_UserSize(ULONG *pFlags, ULONG StartingSize, STGMEDIUM
{
ULONG
size
=
StartingSize
;
TRACE
(
"("
);
dump_user_flags
(
pFlags
);
TRACE
(
", %
l
d, %p
\n
"
,
StartingSize
,
pStgMedium
);
TRACE
(
"("
);
dump_user_flags
(
pFlags
);
TRACE
(
", %d, %p
\n
"
,
StartingSize
,
pStgMedium
);
ALIGN_LENGTH
(
size
,
3
);
...
...
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