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
fb640601
Commit
fb640601
authored
May 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix some pointer conversion warnings on 64-bit.
parent
448d48c3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
clipboard.c
dlls/ole32/tests/clipboard.c
+1
-1
usrmarshal.c
dlls/ole32/tests/usrmarshal.c
+1
-1
usrmarshal.c
dlls/ole32/usrmarshal.c
+1
-1
No files found.
dlls/ole32/tests/clipboard.c
View file @
fb640601
...
...
@@ -735,7 +735,7 @@ static void test_cf_dataobject(IDataObject *data)
DVTARGETDEVICE
*
target
;
ok
(
fmt_ptr
->
fmt
.
ptd
!=
NULL
,
"target device offset zero
\n
"
);
target
=
(
DVTARGETDEVICE
*
)((
char
*
)
priv
+
(
DWORD
)
fmt_ptr
->
fmt
.
ptd
);
target
=
(
DVTARGETDEVICE
*
)((
char
*
)
priv
+
(
DWORD
_PTR
)
fmt_ptr
->
fmt
.
ptd
);
ok
(
!
memcmp
(
target
,
fmt
.
ptd
,
fmt
.
ptd
->
tdSize
),
"target devices differ
\n
"
);
CoTaskMemFree
(
fmt
.
ptd
);
}
...
...
dlls/ole32/tests/usrmarshal.c
View file @
fb640601
...
...
@@ -145,7 +145,7 @@ static void test_marshal_HWND(void)
HWND_UserMarshal
(
&
umcb
.
Flags
,
buffer
,
&
hwnd
);
wirehwnd
=
(
wireHWND
)
buffer
;
ok
(
wirehwnd
->
fContext
==
WDT_INPROC_CALL
,
"Context should be WDT_INPROC_CALL instead of 0x%08x
\n
"
,
wirehwnd
->
fContext
);
ok
(
wirehwnd
->
u
.
hInproc
==
(
LONG_PTR
)
hwnd
,
"Marshaled value should be %p instead of %
p
\n
"
,
hwnd
,
(
HANDLE
)
wirehwnd
->
u
.
hRemote
);
ok
(
wirehwnd
->
u
.
hInproc
==
(
LONG_PTR
)
hwnd
,
"Marshaled value should be %p instead of %
x
\n
"
,
hwnd
,
wirehwnd
->
u
.
hRemote
);
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
buffer
,
size
,
MSHCTX_LOCAL
);
HWND_UserUnmarshal
(
&
umcb
.
Flags
,
buffer
,
&
hwnd2
);
...
...
dlls/ole32/usrmarshal.c
View file @
fb640601
...
...
@@ -307,7 +307,7 @@ static unsigned char * handle_UserUnmarshal(ULONG *pFlags, unsigned char *pBuffe
RemotableHandle
*
remhandle
=
(
RemotableHandle
*
)
pBuffer
;
if
(
remhandle
->
fContext
!=
WDT_INPROC_CALL
)
RaiseException
(
RPC_X_BAD_STUB_DATA
,
0
,
0
,
NULL
);
*
handle
=
(
HANDLE
)
remhandle
->
u
.
hInproc
;
*
handle
=
(
HANDLE
)
(
LONG_PTR
)
remhandle
->
u
.
hInproc
;
return
pBuffer
+
sizeof
(
RemotableHandle
);
}
...
...
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