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
aded9e40
Commit
aded9e40
authored
May 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix compiler warnings on 64-bit.
parent
feeaf97c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+6
-6
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+1
-1
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
aded9e40
...
...
@@ -102,9 +102,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole);
} while(0)
#define STD_OVERFLOW_CHECK(_Msg) do { \
TRACE("buffer=%d/%d\n",
_Msg->Buffer - (unsigned char *)_Msg->RpcMsg->Buffer
, _Msg->BufferLength); \
TRACE("buffer=%d/%d\n",
(ULONG)(_Msg->Buffer - (unsigned char *)_Msg->RpcMsg->Buffer)
, _Msg->BufferLength); \
if (_Msg->Buffer > (unsigned char *)_Msg->RpcMsg->Buffer + _Msg->BufferLength) \
ERR("buffer overflow %d bytes\n",
_Msg->Buffer - ((unsigned char *)_Msg->RpcMsg->Buffer + _Msg->BufferLength
)); \
ERR("buffer overflow %d bytes\n",
(ULONG)(_Msg->Buffer - ((unsigned char *)_Msg->RpcMsg->Buffer + _Msg->BufferLength)
)); \
} while (0)
#define NDR_POINTER_ID_BASE 0x20000
...
...
@@ -3289,7 +3289,7 @@ unsigned char * WINAPI NdrComplexStructMarshall(PMIDL_STUB_MESSAGE pStubMsg,
/* save it for use by embedded pointer code later */
pStubMsg
->
PointerBufferMark
=
(
unsigned
char
*
)
pStubMsg
->
RpcMsg
->
Buffer
+
pStubMsg
->
BufferLength
;
TRACE
(
"difference = 0x%x
\n
"
,
pStubMsg
->
PointerBufferMark
-
pStubMsg
->
Buffer
);
TRACE
(
"difference = 0x%x
\n
"
,
(
ULONG
)(
pStubMsg
->
PointerBufferMark
-
pStubMsg
->
Buffer
)
);
pointer_buffer_mark_set
=
1
;
/* restore the original buffer length */
...
...
@@ -3375,7 +3375,7 @@ unsigned char * WINAPI NdrComplexStructUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
/* save it for use by embedded pointer code later */
pStubMsg
->
PointerBufferMark
=
pStubMsg
->
Buffer
;
TRACE
(
"difference = 0x%x
\n
"
,
pStubMsg
->
PointerBufferMark
-
saved_buffer
);
TRACE
(
"difference = 0x%x
\n
"
,
(
ULONG
)(
pStubMsg
->
PointerBufferMark
-
saved_buffer
)
);
pointer_buffer_mark_set
=
1
;
/* restore the original buffer */
...
...
@@ -3851,7 +3851,7 @@ unsigned char * WINAPI NdrComplexArrayMarshall(PMIDL_STUB_MESSAGE pStubMsg,
/* save it for use by embedded pointer code later */
pStubMsg
->
PointerBufferMark
=
(
unsigned
char
*
)
pStubMsg
->
RpcMsg
->
Buffer
+
pStubMsg
->
BufferLength
;
TRACE
(
"difference = 0x%x
\n
"
,
pStubMsg
->
Buffer
-
(
unsigned
char
*
)
pStubMsg
->
RpcMsg
->
Buffer
);
TRACE
(
"difference = 0x%x
\n
"
,
(
ULONG
)(
pStubMsg
->
Buffer
-
(
unsigned
char
*
)
pStubMsg
->
RpcMsg
->
Buffer
)
);
pointer_buffer_mark_set
=
1
;
/* restore fields */
...
...
@@ -3929,7 +3929,7 @@ unsigned char * WINAPI NdrComplexArrayUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
size
=
pStubMsg
->
MemorySize
;
pStubMsg
->
IgnoreEmbeddedPointers
=
saved_ignore_embedded
;
TRACE
(
"difference = 0x%x
\n
"
,
pStubMsg
->
Buffer
-
saved_buffer
);
TRACE
(
"difference = 0x%x
\n
"
,
(
ULONG
)(
pStubMsg
->
Buffer
-
saved_buffer
)
);
if
(
!
pStubMsg
->
PointerBufferMark
)
{
/* save it for use by embedded pointer code later */
...
...
dlls/rpcrt4/rpc_transport.c
View file @
aded9e40
...
...
@@ -2568,7 +2568,7 @@ static int rpcrt4_ncacn_http_write(RpcConnection *Connection,
DWORD
bytes_written
;
BOOL
ret
;
httpc
->
last_sent_time
=
~
0U
L
;
/* disable idle packet sending */
httpc
->
last_sent_time
=
~
0U
;
/* disable idle packet sending */
ret
=
InternetWriteFile
(
httpc
->
in_request
,
buffer
,
count
,
&
bytes_written
);
httpc
->
last_sent_time
=
GetTickCount
();
TRACE
(
"%p %p %u -> %s
\n
"
,
httpc
->
in_request
,
buffer
,
count
,
ret
?
"TRUE"
:
"FALSE"
);
...
...
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