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
e86eb8ef
Commit
e86eb8ef
authored
Jan 04, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Change RPC_STATUS from long to LONG for Win64 compatibility.
Also fix the compiler warnings introduced by this change.
parent
969ef6d3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
38 additions
and
38 deletions
+38
-38
crypt.c
dlls/advapi32/crypt.c
+1
-1
rpc.c
dlls/ole32/rpc.c
+8
-8
typelib.c
dlls/oleaut32/tests/typelib.c
+1
-1
ndr_clientserver.c
dlls/rpcrt4/ndr_clientserver.c
+1
-1
rpc_assoc.c
dlls/rpcrt4/rpc_assoc.c
+1
-1
rpc_epmap.c
dlls/rpcrt4/rpc_epmap.c
+1
-1
rpc_message.c
dlls/rpcrt4/rpc_message.c
+1
-1
rpc_server.c
dlls/rpcrt4/rpc_server.c
+1
-1
rpcrt4_main.c
dlls/rpcrt4/rpcrt4_main.c
+1
-1
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+9
-9
rpc.c
dlls/rpcrt4/tests/rpc.c
+0
-0
rpc_async.c
dlls/rpcrt4/tests/rpc_async.c
+6
-6
server.c
dlls/rpcrt4/tests/server.c
+5
-5
rpc.h
include/rpc.h
+1
-1
epmp.c
programs/rpcss/epmp.c
+1
-1
No files found.
dlls/advapi32/crypt.c
View file @
e86eb8ef
...
@@ -305,7 +305,7 @@ static void CRYPT_CreateMachineGuid(void)
...
@@ -305,7 +305,7 @@ static void CRYPT_CreateMachineGuid(void)
'%'
,
'0'
,
'2'
,
'x'
,
'%'
,
'0'
,
'2'
,
'x'
,
'%'
,
'0'
,
'2'
,
'x'
,
'%'
,
'0'
,
'2'
,
'x'
,
'%'
,
'0'
,
'2'
,
'x'
,
0
};
'%'
,
'0'
,
'2'
,
'x'
,
0
};
pUuidCreate
=
GetProcAddress
(
lib
,
"UuidCreate"
);
pUuidCreate
=
(
void
*
)
GetProcAddress
(
lib
,
"UuidCreate"
);
rs
=
pUuidCreate
(
&
uuid
);
rs
=
pUuidCreate
(
&
uuid
);
if
(
rs
==
S_OK
)
if
(
rs
==
S_OK
)
{
{
...
...
dlls/ole32/rpc.c
View file @
e86eb8ef
...
@@ -568,7 +568,7 @@ static HRESULT WINAPI ServerRpcChannelBuffer_GetBuffer(LPRPCCHANNELBUFFER iface,
...
@@ -568,7 +568,7 @@ static HRESULT WINAPI ServerRpcChannelBuffer_GetBuffer(LPRPCCHANNELBUFFER iface,
/* save away the message state again */
/* save away the message state again */
msg
->
Handle
=
message_state
;
msg
->
Handle
=
message_state
;
TRACE
(
"-- %
l
d
\n
"
,
status
);
TRACE
(
"-- %d
\n
"
,
status
);
return
HRESULT_FROM_WIN32
(
status
);
return
HRESULT_FROM_WIN32
(
status
);
}
}
...
@@ -751,7 +751,7 @@ static HRESULT WINAPI ClientRpcChannelBuffer_GetBuffer(LPRPCCHANNELBUFFER iface,
...
@@ -751,7 +751,7 @@ static HRESULT WINAPI ClientRpcChannelBuffer_GetBuffer(LPRPCCHANNELBUFFER iface,
HeapFree
(
GetProcessHeap
(),
0
,
channel_hook_data
);
HeapFree
(
GetProcessHeap
(),
0
,
channel_hook_data
);
TRACE
(
"-- %
l
d
\n
"
,
status
);
TRACE
(
"-- %d
\n
"
,
status
);
return
HRESULT_FROM_WIN32
(
status
);
return
HRESULT_FROM_WIN32
(
status
);
}
}
...
@@ -771,7 +771,7 @@ static DWORD WINAPI rpc_sendreceive_thread(LPVOID param)
...
@@ -771,7 +771,7 @@ static DWORD WINAPI rpc_sendreceive_thread(LPVOID param)
* RPC functions do */
* RPC functions do */
data
->
status
=
I_RpcSendReceive
((
RPC_MESSAGE
*
)
data
->
msg
);
data
->
status
=
I_RpcSendReceive
((
RPC_MESSAGE
*
)
data
->
msg
);
TRACE
(
"completed with status 0x%
l
x
\n
"
,
data
->
status
);
TRACE
(
"completed with status 0x%x
\n
"
,
data
->
status
);
SetEvent
(
data
->
handle
);
SetEvent
(
data
->
handle
);
...
@@ -893,7 +893,7 @@ static HRESULT WINAPI ClientRpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER ifac
...
@@ -893,7 +893,7 @@ static HRESULT WINAPI ClientRpcChannelBuffer_SendReceive(LPRPCCHANNELBUFFER ifac
orpcthat
.
flags
=
ORPCF_NULL
;
orpcthat
.
flags
=
ORPCF_NULL
;
orpcthat
.
extensions
=
NULL
;
orpcthat
.
extensions
=
NULL
;
TRACE
(
"RPC call status: 0x%
l
x
\n
"
,
status
);
TRACE
(
"RPC call status: 0x%x
\n
"
,
status
);
if
(
status
!=
RPC_S_OK
)
if
(
status
!=
RPC_S_OK
)
hr
=
HRESULT_FROM_WIN32
(
status
);
hr
=
HRESULT_FROM_WIN32
(
status
);
...
@@ -967,7 +967,7 @@ static HRESULT WINAPI ServerRpcChannelBuffer_FreeBuffer(LPRPCCHANNELBUFFER iface
...
@@ -967,7 +967,7 @@ static HRESULT WINAPI ServerRpcChannelBuffer_FreeBuffer(LPRPCCHANNELBUFFER iface
msg
->
Handle
=
message_state
;
msg
->
Handle
=
message_state
;
TRACE
(
"-- %
l
d
\n
"
,
status
);
TRACE
(
"-- %d
\n
"
,
status
);
return
HRESULT_FROM_WIN32
(
status
);
return
HRESULT_FROM_WIN32
(
status
);
}
}
...
@@ -1003,7 +1003,7 @@ static HRESULT WINAPI ClientRpcChannelBuffer_FreeBuffer(LPRPCCHANNELBUFFER iface
...
@@ -1003,7 +1003,7 @@ static HRESULT WINAPI ClientRpcChannelBuffer_FreeBuffer(LPRPCCHANNELBUFFER iface
IRpcChannelBuffer_Release
(
message_state
->
params
.
chan
);
IRpcChannelBuffer_Release
(
message_state
->
params
.
chan
);
HeapFree
(
GetProcessHeap
(),
0
,
message_state
);
HeapFree
(
GetProcessHeap
(),
0
,
message_state
);
TRACE
(
"-- %
l
d
\n
"
,
status
);
TRACE
(
"-- %d
\n
"
,
status
);
return
HRESULT_FROM_WIN32
(
status
);
return
HRESULT_FROM_WIN32
(
status
);
}
}
...
@@ -1104,7 +1104,7 @@ HRESULT RPC_CreateClientChannel(const OXID *oxid, const IPID *ipid,
...
@@ -1104,7 +1104,7 @@ HRESULT RPC_CreateClientChannel(const OXID *oxid, const IPID *ipid,
if
(
status
!=
RPC_S_OK
)
if
(
status
!=
RPC_S_OK
)
{
{
ERR
(
"Couldn't get binding for endpoint %s, status = %
l
d
\n
"
,
debugstr_w
(
endpoint
),
status
);
ERR
(
"Couldn't get binding for endpoint %s, status = %d
\n
"
,
debugstr_w
(
endpoint
),
status
);
return
HRESULT_FROM_WIN32
(
status
);
return
HRESULT_FROM_WIN32
(
status
);
}
}
...
@@ -1536,7 +1536,7 @@ HRESULT RPC_RegisterInterface(REFIID riid)
...
@@ -1536,7 +1536,7 @@ HRESULT RPC_RegisterInterface(REFIID riid)
list_add_tail
(
&
registered_interfaces
,
&
rif
->
entry
);
list_add_tail
(
&
registered_interfaces
,
&
rif
->
entry
);
else
else
{
{
ERR
(
"RpcServerRegisterIfEx failed with error %
l
d
\n
"
,
status
);
ERR
(
"RpcServerRegisterIfEx failed with error %d
\n
"
,
status
);
HeapFree
(
GetProcessHeap
(),
0
,
rif
);
HeapFree
(
GetProcessHeap
(),
0
,
rif
);
hr
=
HRESULT_FROM_WIN32
(
status
);
hr
=
HRESULT_FROM_WIN32
(
status
);
}
}
...
...
dlls/oleaut32/tests/typelib.c
View file @
e86eb8ef
...
@@ -649,7 +649,7 @@ static void test_QueryPathOfRegTypeLib(void)
...
@@ -649,7 +649,7 @@ static void test_QueryPathOfRegTypeLib(void)
BSTR
path
;
BSTR
path
;
status
=
UuidCreate
(
&
uid
);
status
=
UuidCreate
(
&
uid
);
ok
(
!
status
||
status
==
RPC_S_UUID_LOCAL_ONLY
,
"UuidCreate error %08
l
x
\n
"
,
status
);
ok
(
!
status
||
status
==
RPC_S_UUID_LOCAL_ONLY
,
"UuidCreate error %08x
\n
"
,
status
);
StringFromGUID2
(
&
uid
,
uid_str
,
40
);
StringFromGUID2
(
&
uid
,
uid_str
,
40
);
/*trace("GUID: %s\n", wine_dbgstr_w(uid_str));*/
/*trace("GUID: %s\n", wine_dbgstr_w(uid_str));*/
...
...
dlls/rpcrt4/ndr_clientserver.c
View file @
e86eb8ef
...
@@ -232,7 +232,7 @@ RPC_STATUS RPC_ENTRY NdrMapCommAndFaultStatus( PMIDL_STUB_MESSAGE pStubMsg,
...
@@ -232,7 +232,7 @@ RPC_STATUS RPC_ENTRY NdrMapCommAndFaultStatus( PMIDL_STUB_MESSAGE pStubMsg,
ULONG
*
pFaultStatus
,
ULONG
*
pFaultStatus
,
RPC_STATUS
Status
)
RPC_STATUS
Status
)
{
{
TRACE
(
"(%p, %p, %p, %
l
d)
\n
"
,
pStubMsg
,
pCommStatus
,
pFaultStatus
,
Status
);
TRACE
(
"(%p, %p, %p, %d)
\n
"
,
pStubMsg
,
pCommStatus
,
pFaultStatus
,
Status
);
switch
(
Status
)
switch
(
Status
)
{
{
...
...
dlls/rpcrt4/rpc_assoc.c
View file @
e86eb8ef
...
@@ -240,7 +240,7 @@ static RPC_STATUS RpcAssoc_BindConnection(const RpcAssoc *assoc, RpcConnection *
...
@@ -240,7 +240,7 @@ static RPC_STATUS RpcAssoc_BindConnection(const RpcAssoc *assoc, RpcConnection *
status
=
RPCRT4_ReceiveWithAuth
(
conn
,
&
response_hdr
,
&
msg
,
&
auth_data
,
&
auth_length
);
status
=
RPCRT4_ReceiveWithAuth
(
conn
,
&
response_hdr
,
&
msg
,
&
auth_data
,
&
auth_length
);
if
(
status
!=
RPC_S_OK
)
if
(
status
!=
RPC_S_OK
)
{
{
ERR
(
"receive failed with error %
l
d
\n
"
,
status
);
ERR
(
"receive failed with error %d
\n
"
,
status
);
return
status
;
return
status
;
}
}
...
...
dlls/rpcrt4/rpc_epmap.c
View file @
e86eb8ef
...
@@ -444,7 +444,7 @@ RPC_STATUS WINAPI RpcEpResolveBinding( RPC_BINDING_HANDLE Binding, RPC_IF_HANDLE
...
@@ -444,7 +444,7 @@ RPC_STATUS WINAPI RpcEpResolveBinding( RPC_BINDING_HANDLE Binding, RPC_IF_HANDLE
if
(
!
resolved_endpoint
)
if
(
!
resolved_endpoint
)
{
{
status
=
TowerExplode
(
towers
[
i
],
NULL
,
NULL
,
NULL
,
&
resolved_endpoint
,
NULL
);
status
=
TowerExplode
(
towers
[
i
],
NULL
,
NULL
,
NULL
,
&
resolved_endpoint
,
NULL
);
TRACE
(
"status = %
l
d
\n
"
,
status
);
TRACE
(
"status = %d
\n
"
,
status
);
}
}
I_RpcFree
(
towers
[
i
]);
I_RpcFree
(
towers
[
i
]);
}
}
...
...
dlls/rpcrt4/rpc_message.c
View file @
e86eb8ef
...
@@ -1279,7 +1279,7 @@ RPC_STATUS WINAPI I_RpcReceive(PRPC_MESSAGE pMsg)
...
@@ -1279,7 +1279,7 @@ RPC_STATUS WINAPI I_RpcReceive(PRPC_MESSAGE pMsg)
conn
=
pMsg
->
ReservedForRuntime
;
conn
=
pMsg
->
ReservedForRuntime
;
status
=
RPCRT4_Receive
(
conn
,
&
hdr
,
pMsg
);
status
=
RPCRT4_Receive
(
conn
,
&
hdr
,
pMsg
);
if
(
status
!=
RPC_S_OK
)
{
if
(
status
!=
RPC_S_OK
)
{
WARN
(
"receive failed with error %
l
x
\n
"
,
status
);
WARN
(
"receive failed with error %x
\n
"
,
status
);
goto
fail
;
goto
fail
;
}
}
...
...
dlls/rpcrt4/rpc_server.c
View file @
e86eb8ef
...
@@ -380,7 +380,7 @@ static DWORD CALLBACK RPCRT4_io_thread(LPVOID the_arg)
...
@@ -380,7 +380,7 @@ static DWORD CALLBACK RPCRT4_io_thread(LPVOID the_arg)
status
=
RPCRT4_Receive
(
conn
,
&
hdr
,
msg
);
status
=
RPCRT4_Receive
(
conn
,
&
hdr
,
msg
);
if
(
status
!=
RPC_S_OK
)
{
if
(
status
!=
RPC_S_OK
)
{
WARN
(
"receive failed with error %
l
x
\n
"
,
status
);
WARN
(
"receive failed with error %x
\n
"
,
status
);
HeapFree
(
GetProcessHeap
(),
0
,
msg
);
HeapFree
(
GetProcessHeap
(),
0
,
msg
);
break
;
break
;
}
}
...
...
dlls/rpcrt4/rpcrt4_main.c
View file @
e86eb8ef
...
@@ -715,7 +715,7 @@ void WINAPI I_RpcFree(void *Object)
...
@@ -715,7 +715,7 @@ void WINAPI I_RpcFree(void *Object)
*/
*/
LONG
WINAPI
I_RpcMapWin32Status
(
RPC_STATUS
status
)
LONG
WINAPI
I_RpcMapWin32Status
(
RPC_STATUS
status
)
{
{
TRACE
(
"(%
l
d)
\n
"
,
status
);
TRACE
(
"(%d)
\n
"
,
status
);
switch
(
status
)
switch
(
status
)
{
{
case
ERROR_ACCESS_DENIED
:
return
STATUS_ACCESS_DENIED
;
case
ERROR_ACCESS_DENIED
:
return
STATUS_ACCESS_DENIED
;
...
...
dlls/rpcrt4/tests/ndr_marshall.c
View file @
e86eb8ef
...
@@ -1945,11 +1945,11 @@ static void test_ndr_buffer(void)
...
@@ -1945,11 +1945,11 @@ static void test_ndr_buffer(void)
StubDesc
.
RpcInterfaceInformation
=
(
void
*
)
&
IFoo___RpcServerInterface
;
StubDesc
.
RpcInterfaceInformation
=
(
void
*
)
&
IFoo___RpcServerInterface
;
status
=
RpcServerUseProtseqEp
(
ncalrpc
,
20
,
endpoint
,
NULL
);
status
=
RpcServerUseProtseqEp
(
ncalrpc
,
20
,
endpoint
,
NULL
);
ok
(
RPC_S_OK
==
status
,
"RpcServerUseProtseqEp failed with status %
l
u
\n
"
,
status
);
ok
(
RPC_S_OK
==
status
,
"RpcServerUseProtseqEp failed with status %u
\n
"
,
status
);
status
=
RpcServerRegisterIf
(
IFoo_v0_0_s_ifspec
,
NULL
,
NULL
);
status
=
RpcServerRegisterIf
(
IFoo_v0_0_s_ifspec
,
NULL
,
NULL
);
ok
(
RPC_S_OK
==
status
,
"RpcServerRegisterIf failed with status %
l
u
\n
"
,
status
);
ok
(
RPC_S_OK
==
status
,
"RpcServerRegisterIf failed with status %u
\n
"
,
status
);
status
=
RpcServerListen
(
1
,
20
,
TRUE
);
status
=
RpcServerListen
(
1
,
20
,
TRUE
);
ok
(
RPC_S_OK
==
status
,
"RpcServerListen failed with status %
l
u
\n
"
,
status
);
ok
(
RPC_S_OK
==
status
,
"RpcServerListen failed with status %u
\n
"
,
status
);
if
(
status
!=
RPC_S_OK
)
if
(
status
!=
RPC_S_OK
)
{
{
/* Failed to create a server, running client tests is useless */
/* Failed to create a server, running client tests is useless */
...
@@ -1957,10 +1957,10 @@ static void test_ndr_buffer(void)
...
@@ -1957,10 +1957,10 @@ static void test_ndr_buffer(void)
}
}
status
=
RpcStringBindingCompose
(
NULL
,
ncalrpc
,
NULL
,
endpoint
,
NULL
,
&
binding
);
status
=
RpcStringBindingCompose
(
NULL
,
ncalrpc
,
NULL
,
endpoint
,
NULL
,
&
binding
);
ok
(
status
==
RPC_S_OK
,
"RpcStringBindingCompose failed (%
l
u)
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"RpcStringBindingCompose failed (%u)
\n
"
,
status
);
status
=
RpcBindingFromStringBinding
(
binding
,
&
Handle
);
status
=
RpcBindingFromStringBinding
(
binding
,
&
Handle
);
ok
(
status
==
RPC_S_OK
,
"RpcBindingFromStringBinding failed (%
l
u)
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"RpcBindingFromStringBinding failed (%u)
\n
"
,
status
);
RpcStringFree
(
&
binding
);
RpcStringFree
(
&
binding
);
NdrClientInitializeNew
(
&
RpcMessage
,
&
StubMsg
,
&
StubDesc
,
5
);
NdrClientInitializeNew
(
&
RpcMessage
,
&
StubMsg
,
&
StubDesc
,
5
);
...
@@ -2003,7 +2003,7 @@ todo_wine
...
@@ -2003,7 +2003,7 @@ todo_wine
RpcBindingFree
(
&
Handle
);
RpcBindingFree
(
&
Handle
);
status
=
RpcServerUnregisterIf
(
NULL
,
NULL
,
FALSE
);
status
=
RpcServerUnregisterIf
(
NULL
,
NULL
,
FALSE
);
ok
(
status
==
RPC_S_OK
,
"RpcServerUnregisterIf failed (%
l
u)
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"RpcServerUnregisterIf failed (%u)
\n
"
,
status
);
}
}
static
void
test_NdrMapCommAndFaultStatus
(
void
)
static
void
test_NdrMapCommAndFaultStatus
(
void
)
...
@@ -2022,7 +2022,7 @@ static void test_NdrMapCommAndFaultStatus(void)
...
@@ -2022,7 +2022,7 @@ static void test_NdrMapCommAndFaultStatus(void)
ULONG
expected_comm_status
=
0
;
ULONG
expected_comm_status
=
0
;
ULONG
expected_fault_status
=
0
;
ULONG
expected_fault_status
=
0
;
status
=
NdrMapCommAndFaultStatus
(
&
StubMsg
,
&
comm_status
,
&
fault_status
,
rpc_status
);
status
=
NdrMapCommAndFaultStatus
(
&
StubMsg
,
&
comm_status
,
&
fault_status
,
rpc_status
);
ok
(
status
==
RPC_S_OK
,
"NdrMapCommAndFaultStatus failed with error %
l
d
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"NdrMapCommAndFaultStatus failed with error %d
\n
"
,
status
);
switch
(
rpc_status
)
switch
(
rpc_status
)
{
{
case
ERROR_INVALID_HANDLE
:
case
ERROR_INVALID_HANDLE
:
...
@@ -2042,9 +2042,9 @@ static void test_NdrMapCommAndFaultStatus(void)
...
@@ -2042,9 +2042,9 @@ static void test_NdrMapCommAndFaultStatus(void)
default:
default:
expected_fault_status
=
rpc_status
;
expected_fault_status
=
rpc_status
;
}
}
ok
(
comm_status
==
expected_comm_status
,
"NdrMapCommAndFaultStatus should have mapped %
l
d to comm status %d instead of %d
\n
"
,
ok
(
comm_status
==
expected_comm_status
,
"NdrMapCommAndFaultStatus should have mapped %d to comm status %d instead of %d
\n
"
,
rpc_status
,
expected_comm_status
,
comm_status
);
rpc_status
,
expected_comm_status
,
comm_status
);
ok
(
fault_status
==
expected_fault_status
,
"NdrMapCommAndFaultStatus should have mapped %
l
d to fault status %d instead of %d
\n
"
,
ok
(
fault_status
==
expected_fault_status
,
"NdrMapCommAndFaultStatus should have mapped %d to fault status %d instead of %d
\n
"
,
rpc_status
,
expected_fault_status
,
fault_status
);
rpc_status
,
expected_fault_status
,
fault_status
);
}
}
}
}
...
...
dlls/rpcrt4/tests/rpc.c
View file @
e86eb8ef
This diff is collapsed.
Click to expand it.
dlls/rpcrt4/tests/rpc_async.c
View file @
e86eb8ef
...
@@ -36,14 +36,14 @@ static void test_RpcAsyncInitializeHandle(void)
...
@@ -36,14 +36,14 @@ static void test_RpcAsyncInitializeHandle(void)
int
i
;
int
i
;
status
=
pRpcAsyncInitializeHandle
((
PRPC_ASYNC_STATE
)
buffer
,
sizeof
(
buffer
));
status
=
pRpcAsyncInitializeHandle
((
PRPC_ASYNC_STATE
)
buffer
,
sizeof
(
buffer
));
ok
(
status
==
ERROR_INVALID_PARAMETER
,
"RpcAsyncInitializeHandle with large Size should have returned ERROR_INVALID_PARAMETER instead of %
l
d
\n
"
,
status
);
ok
(
status
==
ERROR_INVALID_PARAMETER
,
"RpcAsyncInitializeHandle with large Size should have returned ERROR_INVALID_PARAMETER instead of %d
\n
"
,
status
);
status
=
pRpcAsyncInitializeHandle
(
&
async
,
sizeof
(
async
)
-
1
);
status
=
pRpcAsyncInitializeHandle
(
&
async
,
sizeof
(
async
)
-
1
);
ok
(
status
==
ERROR_INVALID_PARAMETER
,
"RpcAsyncInitializeHandle with small Size should have returned ERROR_INVALID_PARAMETER instead of %
l
d
\n
"
,
status
);
ok
(
status
==
ERROR_INVALID_PARAMETER
,
"RpcAsyncInitializeHandle with small Size should have returned ERROR_INVALID_PARAMETER instead of %d
\n
"
,
status
);
memset
(
&
async
,
0xcc
,
sizeof
(
async
));
memset
(
&
async
,
0xcc
,
sizeof
(
async
));
status
=
pRpcAsyncInitializeHandle
(
&
async
,
sizeof
(
async
));
status
=
pRpcAsyncInitializeHandle
(
&
async
,
sizeof
(
async
));
ok
(
status
==
RPC_S_OK
,
"RpcAsyncInitializeHandle failed with error %
l
d
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"RpcAsyncInitializeHandle failed with error %d
\n
"
,
status
);
ok
(
async
.
Size
==
sizeof
(
async
),
"async.Size wrong: %d
\n
"
,
async
.
Size
);
ok
(
async
.
Size
==
sizeof
(
async
),
"async.Size wrong: %d
\n
"
,
async
.
Size
);
ok
(
async
.
Signature
==
0x43595341
,
"async.Signature should be 0x43595341, but is 0x%x instead
\n
"
,
async
.
Signature
);
ok
(
async
.
Signature
==
0x43595341
,
"async.Signature should be 0x43595341, but is 0x%x instead
\n
"
,
async
.
Signature
);
...
@@ -64,16 +64,16 @@ static void test_RpcAsyncGetCallStatus(void)
...
@@ -64,16 +64,16 @@ static void test_RpcAsyncGetCallStatus(void)
RPC_STATUS
status
;
RPC_STATUS
status
;
status
=
pRpcAsyncInitializeHandle
(
&
async
,
sizeof
(
async
));
status
=
pRpcAsyncInitializeHandle
(
&
async
,
sizeof
(
async
));
ok
(
status
==
RPC_S_OK
,
"RpcAsyncInitializeHandle failed with error %
l
d
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"RpcAsyncInitializeHandle failed with error %d
\n
"
,
status
);
status
=
pRpcAsyncGetCallStatus
(
&
async
);
status
=
pRpcAsyncGetCallStatus
(
&
async
);
todo_wine
todo_wine
ok
(
status
==
RPC_S_INVALID_BINDING
,
"RpcAsyncGetCallStatus should have returned RPC_S_INVALID_BINDING instead of %
l
d
\n
"
,
status
);
ok
(
status
==
RPC_S_INVALID_BINDING
,
"RpcAsyncGetCallStatus should have returned RPC_S_INVALID_BINDING instead of %d
\n
"
,
status
);
memset
(
&
async
,
0
,
sizeof
(
async
));
memset
(
&
async
,
0
,
sizeof
(
async
));
status
=
pRpcAsyncGetCallStatus
(
&
async
);
status
=
pRpcAsyncGetCallStatus
(
&
async
);
todo_wine
todo_wine
ok
(
status
==
RPC_S_INVALID_BINDING
,
"RpcAsyncGetCallStatus should have returned RPC_S_INVALID_BINDING instead of %
l
d
\n
"
,
status
);
ok
(
status
==
RPC_S_INVALID_BINDING
,
"RpcAsyncGetCallStatus should have returned RPC_S_INVALID_BINDING instead of %d
\n
"
,
status
);
}
}
START_TEST
(
rpc_async
)
START_TEST
(
rpc_async
)
...
...
dlls/rpcrt4/tests/server.c
View file @
e86eb8ef
...
@@ -1294,12 +1294,12 @@ server(void)
...
@@ -1294,12 +1294,12 @@ server(void)
DWORD
ret
;
DWORD
ret
;
iptcp_status
=
RpcServerUseProtseqEp
(
iptcp
,
20
,
port
,
NULL
);
iptcp_status
=
RpcServerUseProtseqEp
(
iptcp
,
20
,
port
,
NULL
);
ok
(
iptcp_status
==
RPC_S_OK
,
"RpcServerUseProtseqEp(ncacn_ip_tcp) failed with status %
l
d
\n
"
,
iptcp_status
);
ok
(
iptcp_status
==
RPC_S_OK
,
"RpcServerUseProtseqEp(ncacn_ip_tcp) failed with status %d
\n
"
,
iptcp_status
);
np_status
=
RpcServerUseProtseqEp
(
np
,
0
,
pipe
,
NULL
);
np_status
=
RpcServerUseProtseqEp
(
np
,
0
,
pipe
,
NULL
);
if
(
np_status
==
RPC_S_PROTSEQ_NOT_SUPPORTED
)
if
(
np_status
==
RPC_S_PROTSEQ_NOT_SUPPORTED
)
skip
(
"Protocol sequence ncacn_np is not supported
\n
"
);
skip
(
"Protocol sequence ncacn_np is not supported
\n
"
);
else
else
ok
(
np_status
==
RPC_S_OK
,
"RpcServerUseProtseqEp(ncacn_np) failed with status %
l
d
\n
"
,
np_status
);
ok
(
np_status
==
RPC_S_OK
,
"RpcServerUseProtseqEp(ncacn_np) failed with status %d
\n
"
,
np_status
);
if
(
pRpcServerRegisterIfEx
)
if
(
pRpcServerRegisterIfEx
)
{
{
...
@@ -1310,9 +1310,9 @@ server(void)
...
@@ -1310,9 +1310,9 @@ server(void)
}
}
else
else
status
=
RpcServerRegisterIf
(
s_IServer_v0_0_s_ifspec
,
NULL
,
NULL
);
status
=
RpcServerRegisterIf
(
s_IServer_v0_0_s_ifspec
,
NULL
,
NULL
);
ok
(
status
==
RPC_S_OK
,
"RpcServerRegisterIf failed with status %
l
d
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"RpcServerRegisterIf failed with status %d
\n
"
,
status
);
status
=
RpcServerListen
(
1
,
20
,
TRUE
);
status
=
RpcServerListen
(
1
,
20
,
TRUE
);
ok
(
status
==
RPC_S_OK
,
"RpcServerListen failed with status %
l
d
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"RpcServerListen failed with status %d
\n
"
,
status
);
stop_event
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
stop_event
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
stop_event
!=
NULL
,
"CreateEvent failed with error %d
\n
"
,
GetLastError
());
ok
(
stop_event
!=
NULL
,
"CreateEvent failed with error %d
\n
"
,
GetLastError
());
...
@@ -1338,7 +1338,7 @@ server(void)
...
@@ -1338,7 +1338,7 @@ server(void)
{
{
status
=
RpcMgmtWaitServerListen
();
status
=
RpcMgmtWaitServerListen
();
todo_wine
{
todo_wine
{
ok
(
status
==
RPC_S_OK
,
"RpcMgmtWaitServerListening failed with status %
l
d
\n
"
,
status
);
ok
(
status
==
RPC_S_OK
,
"RpcMgmtWaitServerListening failed with status %d
\n
"
,
status
);
}
}
}
}
}
}
...
...
include/rpc.h
View file @
e86eb8ef
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
#define __RPC_STUB __stdcall
#define __RPC_STUB __stdcall
#define RPC_ENTRY __stdcall
#define RPC_ENTRY __stdcall
#define RPCRTAPI
#define RPCRTAPI
typedef
long
RPC_STATUS
;
typedef
LONG
RPC_STATUS
;
typedef
void
*
I_RPC_HANDLE
;
typedef
void
*
I_RPC_HANDLE
;
...
...
programs/rpcss/epmp.c
View file @
e86eb8ef
...
@@ -120,7 +120,7 @@ void ept_insert(handle_t h,
...
@@ -120,7 +120,7 @@ void ept_insert(handle_t h,
&
entry
->
address
);
&
entry
->
address
);
if
(
rpc_status
!=
RPC_S_OK
)
if
(
rpc_status
!=
RPC_S_OK
)
{
{
WINE_WARN
(
"TowerExplode failed %
l
u
\n
"
,
rpc_status
);
WINE_WARN
(
"TowerExplode failed %u
\n
"
,
rpc_status
);
*
status
=
rpc_status
;
*
status
=
rpc_status
;
break
;
/* FIXME: more cleanup? */
break
;
/* FIXME: more cleanup? */
}
}
...
...
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