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
c32dc674
Commit
c32dc674
authored
Jun 09, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Make the protseq_ops structure constant.
parent
9aea3b2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
rpc_binding.h
dlls/rpcrt4/rpc_binding.h
+1
-1
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+5
-5
No files found.
dlls/rpcrt4/rpc_binding.h
View file @
c32dc674
...
@@ -45,7 +45,7 @@ typedef struct _RpcConnection
...
@@ -45,7 +45,7 @@ typedef struct _RpcConnection
BOOL
server
;
BOOL
server
;
LPSTR
NetworkAddr
;
LPSTR
NetworkAddr
;
LPSTR
Endpoint
;
LPSTR
Endpoint
;
struct
protseq_ops
*
ops
;
const
struct
protseq_ops
*
ops
;
USHORT
MaxTransmissionSize
;
USHORT
MaxTransmissionSize
;
/* The active interface bound to server. */
/* The active interface bound to server. */
RPC_SYNTAX_IDENTIFIER
ActiveInterface
;
RPC_SYNTAX_IDENTIFIER
ActiveInterface
;
...
...
dlls/rpcrt4/rpc_transport.c
View file @
c32dc674
...
@@ -701,7 +701,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_parse_top_of_tower(const unsigned char *to
...
@@ -701,7 +701,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_parse_top_of_tower(const unsigned char *to
return
RPC_S_OK
;
return
RPC_S_OK
;
}
}
struct
protseq_ops
protseq_list
[]
=
{
st
atic
const
st
ruct
protseq_ops
protseq_list
[]
=
{
{
"ncacn_np"
,
{
"ncacn_np"
,
{
EPM_PROTOCOL_NCACN
,
EPM_PROTOCOL_SMB
},
{
EPM_PROTOCOL_NCACN
,
EPM_PROTOCOL_SMB
},
rpcrt4_conn_np_alloc
,
rpcrt4_conn_np_alloc
,
...
@@ -742,7 +742,7 @@ struct protseq_ops protseq_list[] = {
...
@@ -742,7 +742,7 @@ struct protseq_ops protseq_list[] = {
#define MAX_PROTSEQ (sizeof protseq_list / sizeof protseq_list[0])
#define MAX_PROTSEQ (sizeof protseq_list / sizeof protseq_list[0])
static
struct
protseq_ops
*
rpcrt4_get_protseq_ops
(
const
char
*
protseq
)
static
const
struct
protseq_ops
*
rpcrt4_get_protseq_ops
(
const
char
*
protseq
)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
MAX_PROTSEQ
;
i
++
)
for
(
i
=
0
;
i
<
MAX_PROTSEQ
;
i
++
)
...
@@ -771,7 +771,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server,
...
@@ -771,7 +771,7 @@ RPC_STATUS RPCRT4_CreateConnection(RpcConnection** Connection, BOOL server,
LPCSTR
Protseq
,
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCSTR
Protseq
,
LPCSTR
NetworkAddr
,
LPCSTR
Endpoint
,
LPCSTR
NetworkOptions
,
RpcAuthInfo
*
AuthInfo
,
RpcBinding
*
Binding
)
LPCSTR
NetworkOptions
,
RpcAuthInfo
*
AuthInfo
,
RpcBinding
*
Binding
)
{
{
struct
protseq_ops
*
ops
;
const
struct
protseq_ops
*
ops
;
RpcConnection
*
NewConnection
;
RpcConnection
*
NewConnection
;
ops
=
rpcrt4_get_protseq_ops
(
Protseq
);
ops
=
rpcrt4_get_protseq_ops
(
Protseq
);
...
@@ -863,7 +863,7 @@ RPC_STATUS RpcTransport_GetTopOfTower(unsigned char *tower_data,
...
@@ -863,7 +863,7 @@ RPC_STATUS RpcTransport_GetTopOfTower(unsigned char *tower_data,
const
char
*
endpoint
)
const
char
*
endpoint
)
{
{
twr_empty_floor_t
*
protocol_floor
;
twr_empty_floor_t
*
protocol_floor
;
struct
protseq_ops
*
protseq_ops
=
rpcrt4_get_protseq_ops
(
protseq
);
const
struct
protseq_ops
*
protseq_ops
=
rpcrt4_get_protseq_ops
(
protseq
);
*
tower_size
=
0
;
*
tower_size
=
0
;
...
@@ -901,7 +901,7 @@ RPC_STATUS RpcTransport_ParseTopOfTower(const unsigned char *tower_data,
...
@@ -901,7 +901,7 @@ RPC_STATUS RpcTransport_ParseTopOfTower(const unsigned char *tower_data,
{
{
twr_empty_floor_t
*
protocol_floor
;
twr_empty_floor_t
*
protocol_floor
;
twr_empty_floor_t
*
floor4
;
twr_empty_floor_t
*
floor4
;
struct
protseq_ops
*
protseq_ops
=
NULL
;
const
struct
protseq_ops
*
protseq_ops
=
NULL
;
RPC_STATUS
status
;
RPC_STATUS
status
;
int
i
;
int
i
;
...
...
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