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
d5714415
Commit
d5714415
authored
Apr 19, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Apr 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Simplify RPCRT4_OpenConnection() a little.
parent
ae8197ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
30 deletions
+8
-30
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+8
-30
No files found.
dlls/rpcrt4/rpc_binding.c
View file @
d5714415
...
...
@@ -200,7 +200,6 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConnection* Connection)
if
(
Connection
->
conn
)
return
r
;
if
(
Connection
->
server
)
{
/* server */
/* protseq=ncalrpc: supposed to use NT LPC ports,
* but we'll implement it with named pipes for now */
if
(
strcmp
(
Connection
->
Protseq
,
"ncalrpc"
)
==
0
)
{
...
...
@@ -208,8 +207,11 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConnection* Connection)
LPSTR
pname
;
pname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
prefix
)
+
strlen
(
Connection
->
Endpoint
)
+
1
);
strcat
(
strcpy
(
pname
,
prefix
),
Connection
->
Endpoint
);
TRACE
(
"listening on %s
\n
"
,
pname
);
if
(
Connection
->
server
)
r
=
rpcrt4_connect_pipe
(
Connection
,
pname
);
else
r
=
rpcrt4_open_pipe
(
Connection
,
pname
,
TRUE
);
HeapFree
(
GetProcessHeap
(),
0
,
pname
);
}
/* protseq=ncacn_np: named pipes */
...
...
@@ -218,39 +220,15 @@ RPC_STATUS RPCRT4_OpenConnection(RpcConnection* Connection)
LPSTR
pname
;
pname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
prefix
)
+
strlen
(
Connection
->
Endpoint
)
+
1
);
strcat
(
strcpy
(
pname
,
prefix
),
Connection
->
Endpoint
);
if
(
Connection
->
server
)
r
=
rpcrt4_connect_pipe
(
Connection
,
pname
);
else
r
=
rpcrt4_open_pipe
(
Connection
,
pname
,
FALSE
);
HeapFree
(
GetProcessHeap
(),
0
,
pname
);
}
else
{
ERR
(
"protseq %s not supported
\n
"
,
Connection
->
Protseq
);
return
RPC_S_PROTSEQ_NOT_SUPPORTED
;
}
}
else
{
/* client */
/* protseq=ncalrpc: supposed to use NT LPC ports,
* but we'll implement it with named pipes for now */
if
(
strcmp
(
Connection
->
Protseq
,
"ncalrpc"
)
==
0
)
{
static
LPCSTR
prefix
=
"
\\\\
.
\\
pipe
\\
lrpc
\\
"
;
LPSTR
pname
;
pname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
prefix
)
+
strlen
(
Connection
->
Endpoint
)
+
1
);
strcat
(
strcpy
(
pname
,
prefix
),
Connection
->
Endpoint
);
r
=
rpcrt4_open_pipe
(
Connection
,
pname
,
TRUE
);
HeapFree
(
GetProcessHeap
(),
0
,
pname
);
}
/* protseq=ncacn_np: named pipes */
else
if
(
strcmp
(
Connection
->
Protseq
,
"ncacn_np"
)
==
0
)
{
static
LPCSTR
prefix
=
"
\\\\
."
;
LPSTR
pname
;
pname
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
prefix
)
+
strlen
(
Connection
->
Endpoint
)
+
1
);
strcat
(
strcpy
(
pname
,
prefix
),
Connection
->
Endpoint
);
r
=
rpcrt4_open_pipe
(
Connection
,
pname
,
FALSE
);
HeapFree
(
GetProcessHeap
(),
0
,
pname
);
}
else
{
ERR
(
"protseq %s not supported
\n
"
,
Connection
->
Protseq
);
return
RPC_S_PROTSEQ_NOT_SUPPORTED
;
}
r
=
RPC_S_PROTSEQ_NOT_SUPPORTED
;
}
return
r
;
...
...
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