Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ab7e3364
Commit
ab7e3364
authored
Jun 27, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Remove superfluous casts of void pointers to other pointer types.
parent
d28c3ca6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
tmarshal.c
dlls/oleaut32/tests/tmarshal.c
+2
-2
usrmarshal.c
dlls/oleaut32/tests/usrmarshal.c
+5
-5
No files found.
dlls/oleaut32/tests/tmarshal.c
View file @
ab7e3364
...
@@ -579,7 +579,7 @@ static HRESULT register_current_module_typelib(void)
...
@@ -579,7 +579,7 @@ static HRESULT register_current_module_typelib(void)
static
IWidget
*
Widget_Create
(
void
)
static
IWidget
*
Widget_Create
(
void
)
{
{
Widget
*
This
=
(
Widget
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
Widget
*
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
HRESULT
hr
;
HRESULT
hr
;
ITypeLib
*
pTypeLib
;
ITypeLib
*
pTypeLib
;
...
@@ -698,7 +698,7 @@ static IKindaEnumWidget *KindaEnumWidget_Create(void)
...
@@ -698,7 +698,7 @@ static IKindaEnumWidget *KindaEnumWidget_Create(void)
{
{
KindaEnum
*
This
;
KindaEnum
*
This
;
This
=
(
KindaEnum
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
if
(
!
This
)
return
NULL
;
if
(
!
This
)
return
NULL
;
This
->
lpVtbl
=
&
KindaEnumWidget_VTable
;
This
->
lpVtbl
=
&
KindaEnumWidget_VTable
;
This
->
refs
=
1
;
This
->
refs
=
1
;
...
...
dlls/oleaut32/tests/usrmarshal.c
View file @
ab7e3364
...
@@ -192,7 +192,7 @@ static void test_marshal_LPSAFEARRAY(void)
...
@@ -192,7 +192,7 @@ static void test_marshal_LPSAFEARRAY(void)
ok
(
size
==
68
,
"size should be 68 bytes, not %ld
\n
"
,
size
);
ok
(
size
==
68
,
"size should be 68 bytes, not %ld
\n
"
,
size
);
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
ok
(
size
==
64
,
"size should be 64 bytes, not %ld
\n
"
,
size
);
ok
(
size
==
64
,
"size should be 64 bytes, not %ld
\n
"
,
size
);
buffer
=
(
unsigned
char
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
check_safearray
(
buffer
,
lpsa
);
check_safearray
(
buffer
,
lpsa
);
...
@@ -215,7 +215,7 @@ static void test_marshal_LPSAFEARRAY(void)
...
@@ -215,7 +215,7 @@ static void test_marshal_LPSAFEARRAY(void)
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
ok
(
size
==
4
,
"size should be 4 bytes, not %ld
\n
"
,
size
);
ok
(
size
==
4
,
"size should be 4 bytes, not %ld
\n
"
,
size
);
buffer
=
(
unsigned
char
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
check_safearray
(
buffer
,
lpsa
);
check_safearray
(
buffer
,
lpsa
);
...
@@ -238,7 +238,7 @@ static void test_marshal_LPSAFEARRAY(void)
...
@@ -238,7 +238,7 @@ static void test_marshal_LPSAFEARRAY(void)
ok
(
size
==
128
,
"size should be 128 bytes, not %ld
\n
"
,
size
);
ok
(
size
==
128
,
"size should be 128 bytes, not %ld
\n
"
,
size
);
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
ok
(
size
==
128
,
"size should be 128 bytes, not %ld
\n
"
,
size
);
ok
(
size
==
128
,
"size should be 128 bytes, not %ld
\n
"
,
size
);
buffer
=
(
unsigned
char
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
check_safearray
(
buffer
,
lpsa
);
check_safearray
(
buffer
,
lpsa
);
...
@@ -260,7 +260,7 @@ static void test_marshal_LPSAFEARRAY(void)
...
@@ -260,7 +260,7 @@ static void test_marshal_LPSAFEARRAY(void)
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
ok
(
size
==
432
,
"size %ld
\n
"
,
size
);
ok
(
size
==
432
,
"size %ld
\n
"
,
size
);
buffer
=
(
unsigned
char
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
check_safearray
(
buffer
,
lpsa
);
check_safearray
(
buffer
,
lpsa
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
...
@@ -283,7 +283,7 @@ static void test_marshal_LPSAFEARRAY(void)
...
@@ -283,7 +283,7 @@ static void test_marshal_LPSAFEARRAY(void)
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
size
=
LPSAFEARRAY_UserSize
(
&
umcb
.
Flags
,
0
,
&
lpsa
);
todo_wine
todo_wine
ok
(
size
==
1388
,
"size %ld
\n
"
,
size
);
ok
(
size
==
1388
,
"size %ld
\n
"
,
size
);
buffer
=
(
unsigned
char
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
LPSAFEARRAY_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
lpsa
);
check_safearray
(
buffer
,
lpsa
);
check_safearray
(
buffer
,
lpsa
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
...
...
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