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
891d3ef5
Commit
891d3ef5
authored
Aug 31, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix compilation on systems that don't support nameless unions.
parent
64e419ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+7
-6
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
891d3ef5
...
...
@@ -32,6 +32,7 @@
#include <string.h>
#include <limits.h>
#define NONAMELESSUNION
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
...
...
@@ -4379,15 +4380,15 @@ RPC_STATUS RPC_ENTRY NdrGetUserMarshalInfo(ULONG *flags, ULONG level, NDR_USER_M
if
(
level
!=
1
)
return
RPC_S_INVALID_ARG
;
memset
(
&
umi
->
Level1
,
0
,
sizeof
(
umi
->
Level1
));
memset
(
&
umi
->
u1
.
Level1
,
0
,
sizeof
(
umi
->
u1
.
Level1
));
umi
->
InformationLevel
=
level
;
if
(
umcb
->
Signature
!=
USER_MARSHAL_CB_SIGNATURE
)
return
RPC_S_INVALID_ARG
;
umi
->
Level1
.
pfnAllocate
=
umcb
->
pStubMsg
->
pfnAllocate
;
umi
->
Level1
.
pfnFree
=
umcb
->
pStubMsg
->
pfnFree
;
umi
->
Level1
.
pRpcChannelBuffer
=
umcb
->
pStubMsg
->
pRpcChannelBuffer
;
umi
->
u1
.
Level1
.
pfnAllocate
=
umcb
->
pStubMsg
->
pfnAllocate
;
umi
->
u1
.
Level1
.
pfnFree
=
umcb
->
pStubMsg
->
pfnFree
;
umi
->
u1
.
Level1
.
pRpcChannelBuffer
=
umcb
->
pStubMsg
->
pRpcChannelBuffer
;
switch
(
umcb
->
CBType
)
{
...
...
@@ -4403,8 +4404,8 @@ RPC_STATUS RPC_ENTRY NdrGetUserMarshalInfo(ULONG *flags, ULONG level, NDR_USER_M
umcb
->
pStubMsg
->
Buffer
>
buffer_end
)
return
ERROR_INVALID_USER_BUFFER
;
umi
->
Level1
.
Buffer
=
umcb
->
pStubMsg
->
Buffer
;
umi
->
Level1
.
BufferSize
=
buffer_end
-
umcb
->
pStubMsg
->
Buffer
;
umi
->
u1
.
Level1
.
Buffer
=
umcb
->
pStubMsg
->
Buffer
;
umi
->
u1
.
Level1
.
BufferSize
=
buffer_end
-
umcb
->
pStubMsg
->
Buffer
;
break
;
}
case
USER_MARSHAL_CB_BUFFER_SIZE
:
...
...
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