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
db6a901b
Commit
db6a901b
authored
Mar 13, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Assign to structs instead of using memcpy.
parent
fd6ae974
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
ndr_contexthandle.c
dlls/rpcrt4/ndr_contexthandle.c
+1
-1
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+3
-3
rpc_message.c
dlls/rpcrt4/rpc_message.c
+3
-3
rpc_server.c
dlls/rpcrt4/rpc_server.c
+3
-3
No files found.
dlls/rpcrt4/ndr_contexthandle.c
View file @
db6a901b
...
...
@@ -183,7 +183,7 @@ static UINT ndr_update_context_handle(NDR_CCONTEXT *CContext,
che
->
magic
=
NDR_CONTEXT_HANDLE_MAGIC
;
RpcBindingCopy
(
hBinding
,
&
che
->
handle
);
list_add_tail
(
&
context_handle_list
,
&
che
->
entry
);
memcpy
(
&
che
->
wire_data
,
chi
,
sizeof
*
chi
)
;
che
->
wire_data
=
*
chi
;
}
*
CContext
=
che
;
...
...
dlls/rpcrt4/rpc_binding.c
View file @
db6a901b
...
...
@@ -227,7 +227,7 @@ RPC_STATUS RPCRT4_ResolveBinding(RpcBinding* Binding, LPCSTR Endpoint)
RPC_STATUS
RPCRT4_SetBindingObject
(
RpcBinding
*
Binding
,
const
UUID
*
ObjectUuid
)
{
TRACE
(
"(*RpcBinding == ^%p, UUID == %s)
\n
"
,
Binding
,
debugstr_guid
(
ObjectUuid
));
if
(
ObjectUuid
)
memcpy
(
&
Binding
->
ObjectUuid
,
ObjectUuid
,
sizeof
(
UUID
))
;
if
(
ObjectUuid
)
Binding
->
ObjectUuid
=
*
ObjectUuid
;
else
UuidCreateNil
(
&
Binding
->
ObjectUuid
);
return
RPC_S_OK
;
}
...
...
@@ -691,10 +691,10 @@ RPC_STATUS WINAPI RpcBindingInqObject( RPC_BINDING_HANDLE Binding, UUID* ObjectU
RpcBinding
*
bind
=
(
RpcBinding
*
)
Binding
;
TRACE
(
"(%p,%p) = %s
\n
"
,
Binding
,
ObjectUuid
,
debugstr_guid
(
&
bind
->
ObjectUuid
));
memcpy
(
ObjectUuid
,
&
bind
->
ObjectUuid
,
sizeof
(
UUID
))
;
*
ObjectUuid
=
bind
->
ObjectUuid
;
return
RPC_S_OK
;
}
/***********************************************************************
* RpcBindingSetObject (RPCRT4.@)
*/
...
...
dlls/rpcrt4/rpc_message.c
View file @
db6a901b
...
...
@@ -196,8 +196,8 @@ RpcPktHdr *RPCRT4_BuildBindHeader(unsigned long DataRepresentation,
header
->
bind
.
assoc_gid
=
AssocGroupId
;
header
->
bind
.
num_elements
=
1
;
header
->
bind
.
num_syntaxes
=
1
;
memcpy
(
&
header
->
bind
.
abstract
,
AbstractId
,
sizeof
(
RPC_SYNTAX_IDENTIFIER
))
;
memcpy
(
&
header
->
bind
.
transfer
,
TransferId
,
sizeof
(
RPC_SYNTAX_IDENTIFIER
))
;
header
->
bind
.
abstract
=
*
AbstractId
;
header
->
bind
.
transfer
=
*
TransferId
;
return
header
;
}
...
...
@@ -278,7 +278,7 @@ RpcPktHdr *RPCRT4_BuildBindAckHeader(unsigned long DataRepresentation,
results
->
results
[
0
].
result
=
Result
;
results
->
results
[
0
].
reason
=
Reason
;
transfer_id
=
(
RPC_SYNTAX_IDENTIFIER
*
)(
results
+
1
);
memcpy
(
transfer_id
,
TransferId
,
sizeof
(
RPC_SYNTAX_IDENTIFIER
))
;
*
transfer_id
=
*
TransferId
;
return
header
;
}
...
...
dlls/rpcrt4/rpc_server.c
View file @
db6a901b
...
...
@@ -845,7 +845,7 @@ RPC_STATUS WINAPI RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid,
sif
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
RpcServerInterface
));
sif
->
If
=
If
;
if
(
MgrTypeUuid
)
{
memcpy
(
&
sif
->
MgrTypeUuid
,
MgrTypeUuid
,
sizeof
(
UUID
))
;
sif
->
MgrTypeUuid
=
*
MgrTypeUuid
;
sif
->
MgrEpv
=
MgrEpv
;
}
else
{
memset
(
&
sif
->
MgrTypeUuid
,
0
,
sizeof
(
UUID
));
...
...
@@ -977,8 +977,8 @@ RPC_STATUS WINAPI RpcObjectSetType( UUID* ObjUuid, UUID* TypeUuid )
return
RPC_S_ALREADY_REGISTERED
;
/* ... otherwise create a new one and add it in. */
map
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
RpcObjTypeMap
));
m
emcpy
(
&
map
->
Object
,
ObjUuid
,
sizeof
(
UUID
))
;
m
emcpy
(
&
map
->
Type
,
TypeUuid
,
sizeof
(
UUID
))
;
m
ap
->
Object
=
*
ObjUuid
;
m
ap
->
Type
=
*
TypeUuid
;
map
->
next
=
NULL
;
if
(
prev
)
prev
->
next
=
map
;
/* prev is the last map in the linklist */
...
...
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