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
fa3d6238
Commit
fa3d6238
authored
Aug 17, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Aug 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Constify some variables.
parent
95aaca17
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
13 deletions
+14
-13
ndr_marshall.c
dlls/rpcrt4/ndr_marshall.c
+8
-8
rpc_binding.c
dlls/rpcrt4/rpc_binding.c
+2
-2
rpc_binding.h
dlls/rpcrt4/rpc_binding.h
+3
-2
rpc_message.c
dlls/rpcrt4/rpc_message.c
+1
-1
No files found.
dlls/rpcrt4/ndr_marshall.c
View file @
fa3d6238
...
...
@@ -1748,7 +1748,7 @@ void WINAPI NdrSimpleStructFree(PMIDL_STUB_MESSAGE pStubMsg,
}
static
unsigned
long
EmbeddedComplexSize
(
PMIDL_STUB_MESSAGE
pStubMsg
,
static
unsigned
long
EmbeddedComplexSize
(
const
MIDL_STUB_MESSAGE
*
pStubMsg
,
PFORMAT_STRING
pFormat
)
{
switch
(
*
pFormat
)
{
...
...
@@ -3109,7 +3109,7 @@ void WINAPI NdrComplexArrayFree(PMIDL_STUB_MESSAGE pStubMsg,
pMemory
=
ComplexFree
(
pStubMsg
,
pMemory
,
pFormat
,
NULL
);
}
static
ULONG
UserMarshalFlags
(
PMIDL_STUB_MESSAGE
pStubMsg
)
static
ULONG
UserMarshalFlags
(
const
MIDL_STUB_MESSAGE
*
pStubMsg
)
{
return
MAKELONG
(
pStubMsg
->
dwDestContext
,
pStubMsg
->
RpcMsg
->
DataRepresentation
);
...
...
@@ -4419,7 +4419,7 @@ void WINAPI NdrVaryingArrayFree(PMIDL_STUB_MESSAGE pStubMsg,
EmbeddedPointerFree
(
pStubMsg
,
pMemory
,
pFormat
);
}
static
ULONG
get_discriminant
(
unsigned
char
fc
,
unsigned
char
*
pMemory
)
static
ULONG
get_discriminant
(
unsigned
char
fc
,
const
unsigned
char
*
pMemory
)
{
switch
(
fc
)
{
...
...
@@ -4427,16 +4427,16 @@ static ULONG get_discriminant(unsigned char fc, unsigned char *pMemory)
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_USMALL
:
return
*
(
UCHAR
*
)
pMemory
;
return
*
(
const
UCHAR
*
)
pMemory
;
case
RPC_FC_WCHAR
:
case
RPC_FC_SHORT
:
case
RPC_FC_USHORT
:
case
RPC_FC_ENUM16
:
return
*
(
USHORT
*
)
pMemory
;
return
*
(
const
USHORT
*
)
pMemory
;
case
RPC_FC_LONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_ENUM32
:
return
*
(
ULONG
*
)
pMemory
;
return
*
(
const
ULONG
*
)
pMemory
;
default:
FIXME
(
"Unhandled base type: 0x%02x
\n
"
,
fc
);
return
0
;
...
...
@@ -5773,7 +5773,7 @@ static struct context_handle_entry *get_context_entry(NDR_CCONTEXT CContext)
return
che
;
}
static
struct
context_handle_entry
*
context_entry_from_guid
(
LPGUID
uuid
)
static
struct
context_handle_entry
*
context_entry_from_guid
(
LP
C
GUID
uuid
)
{
struct
context_handle_entry
*
che
;
LIST_FOR_EACH_ENTRY
(
che
,
&
context_handle_list
,
struct
context_handle_entry
,
entry
)
...
...
@@ -5823,7 +5823,7 @@ void WINAPI NDRCContextMarshall(NDR_CCONTEXT CContext, void *pBuff)
static
UINT
ndr_update_context_handle
(
NDR_CCONTEXT
*
CContext
,
RPC_BINDING_HANDLE
hBinding
,
ndr_context_handle
*
chi
)
const
ndr_context_handle
*
chi
)
{
struct
context_handle_entry
*
che
=
NULL
;
...
...
dlls/rpcrt4/rpc_binding.c
View file @
fa3d6238
...
...
@@ -274,8 +274,8 @@ RPC_STATUS RPCRT4_DestroyBinding(RpcBinding* Binding)
}
RPC_STATUS
RPCRT4_OpenBinding
(
RpcBinding
*
Binding
,
RpcConnection
**
Connection
,
PRPC_SYNTAX_IDENTIFIER
TransferSyntax
,
PRPC_SYNTAX_IDENTIFIER
InterfaceId
)
const
RPC_SYNTAX_IDENTIFIER
*
TransferSyntax
,
const
RPC_SYNTAX_IDENTIFIER
*
InterfaceId
)
{
TRACE
(
"(Binding == ^%p)
\n
"
,
Binding
);
...
...
dlls/rpcrt4/rpc_binding.h
View file @
fa3d6238
...
...
@@ -161,13 +161,14 @@ RPC_STATUS RPCRT4_SetBindingObject(RpcBinding* Binding, const UUID* ObjectUuid);
RPC_STATUS
RPCRT4_MakeBinding
(
RpcBinding
**
Binding
,
RpcConnection
*
Connection
);
RPC_STATUS
RPCRT4_ExportBinding
(
RpcBinding
**
Binding
,
RpcBinding
*
OldBinding
);
RPC_STATUS
RPCRT4_DestroyBinding
(
RpcBinding
*
Binding
);
RPC_STATUS
RPCRT4_OpenBinding
(
RpcBinding
*
Binding
,
RpcConnection
**
Connection
,
PRPC_SYNTAX_IDENTIFIER
TransferSyntax
,
PRPC_SYNTAX_IDENTIFIER
InterfaceId
);
RPC_STATUS
RPCRT4_OpenBinding
(
RpcBinding
*
Binding
,
RpcConnection
**
Connection
,
const
RPC_SYNTAX_IDENTIFIER
*
TransferSyntax
,
const
RPC_SYNTAX_IDENTIFIER
*
InterfaceId
);
RPC_STATUS
RPCRT4_CloseBinding
(
RpcBinding
*
Binding
,
RpcConnection
*
Connection
);
BOOL
RPCRT4_RPCSSOnDemandCall
(
PRPCSS_NP_MESSAGE
msg
,
char
*
vardata_payload
,
PRPCSS_NP_REPLY
reply
);
HANDLE
RPCRT4_GetMasterMutex
(
void
);
HANDLE
RPCRT4_RpcssNPConnect
(
void
);
static
inline
const
char
*
rpcrt4_conn_get_name
(
RpcConnection
*
Connection
)
static
inline
const
char
*
rpcrt4_conn_get_name
(
const
RpcConnection
*
Connection
)
{
return
Connection
->
ops
->
name
;
}
...
...
dlls/rpcrt4/rpc_message.c
View file @
fa3d6238
...
...
@@ -440,7 +440,7 @@ static RPC_STATUS RPCRT4_SecurePacket(RpcConnection *Connection,
*/
static
RPC_STATUS
RPCRT4_SendAuth
(
RpcConnection
*
Connection
,
RpcPktHdr
*
Header
,
void
*
Buffer
,
unsigned
int
BufferLength
,
void
*
Auth
,
unsigned
int
AuthLength
)
const
void
*
Auth
,
unsigned
int
AuthLength
)
{
PUCHAR
buffer_pos
;
DWORD
hdr_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