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
9b791e09
Commit
9b791e09
authored
Apr 21, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Allocate RpcServerProtseq in a single place.
parent
e56f6a38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
+21
-10
rpc_server.c
dlls/rpcrt4/rpc_server.c
+21
-10
No files found.
dlls/rpcrt4/rpc_server.c
View file @
9b791e09
...
...
@@ -725,21 +725,34 @@ RPC_STATUS WINAPI RpcServerUseProtseqEpW( LPWSTR Protseq, UINT MaxCalls, LPWSTR
}
/***********************************************************************
* alloc_serverprotoseq (internal)
*/
static
RpcServerProtseq
*
alloc_serverprotoseq
(
UINT
MaxCalls
,
char
*
Protseq
,
char
*
Endpoint
)
{
RpcServerProtseq
*
ps
;
ps
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
RpcServerProtseq
));
ps
->
MaxCalls
=
MaxCalls
;
ps
->
Protseq
=
Protseq
;
ps
->
Endpoint
=
Endpoint
;
return
ps
;
}
/***********************************************************************
* RpcServerUseProtseqEpExA (RPCRT4.@)
*/
RPC_STATUS
WINAPI
RpcServerUseProtseqEpExA
(
unsigned
char
*
Protseq
,
UINT
MaxCalls
,
unsigned
char
*
Endpoint
,
LPVOID
SecurityDescriptor
,
PRPC_POLICY
lpPolicy
)
{
char
*
szps
=
(
char
*
)
Protseq
,
*
szep
=
(
char
*
)
Endpoint
;
RpcServerProtseq
*
ps
;
TRACE
(
"(%s,%u,%s,%p,{%u,%lu,%lu})
\n
"
,
debugstr_a
(
(
char
*
)
Protseq
),
MaxCalls
,
debugstr_a
(
(
char
*
)
Endpoint
),
SecurityDescriptor
,
TRACE
(
"(%s,%u,%s,%p,{%u,%lu,%lu})
\n
"
,
debugstr_a
(
szps
),
MaxCalls
,
debugstr_a
(
szep
),
SecurityDescriptor
,
lpPolicy
->
Length
,
lpPolicy
->
EndpointFlags
,
lpPolicy
->
NICFlags
);
ps
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
RpcServerProtseq
));
ps
->
MaxCalls
=
MaxCalls
;
ps
->
Protseq
=
RPCRT4_strdupA
((
char
*
)
Protseq
);
ps
->
Endpoint
=
RPCRT4_strdupA
((
char
*
)
Endpoint
);
ps
=
alloc_serverprotoseq
(
MaxCalls
,
RPCRT4_strdupA
(
szps
),
RPCRT4_strdupA
(
szep
));
return
RPCRT4_use_protseq
(
ps
);
}
...
...
@@ -756,10 +769,8 @@ RPC_STATUS WINAPI RpcServerUseProtseqEpExW( LPWSTR Protseq, UINT MaxCalls, LPWST
debugstr_w
(
Endpoint
),
SecurityDescriptor
,
lpPolicy
->
Length
,
lpPolicy
->
EndpointFlags
,
lpPolicy
->
NICFlags
);
ps
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
RpcServerProtseq
));
ps
->
MaxCalls
=
MaxCalls
;
ps
->
Protseq
=
RPCRT4_strdupWtoA
(
Protseq
);
ps
->
Endpoint
=
RPCRT4_strdupWtoA
(
Endpoint
);
ps
=
alloc_serverprotoseq
(
MaxCalls
,
RPCRT4_strdupWtoA
(
Protseq
),
RPCRT4_strdupWtoA
(
Endpoint
));
return
RPCRT4_use_protseq
(
ps
);
}
...
...
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