Fix the case of RpcNetworkIsProtseqValid[AW] (was

RpcNetworkIsProtSeqValid[AW]) names.
This commit is contained in:
Filip Navara 2004-04-14 04:28:27 +00:00 committed by Alexandre Julliard
parent 5307b3f598
commit 2493529750
3 changed files with 10 additions and 10 deletions

View file

@ -1021,22 +1021,22 @@ RPC_STATUS WINAPI I_RpcBindingSetAsync( RPC_BINDING_HANDLE Binding, RPC_BLOCKING
} }
/*********************************************************************** /***********************************************************************
* RpcNetworkIsProtSeqValidA (RPCRT4.@) * RpcNetworkIsProtseqValidA (RPCRT4.@)
*/ */
RPC_STATUS RPC_ENTRY RpcNetworkIsProtSeqValidA(unsigned char *protseq) { RPC_STATUS RPC_ENTRY RpcNetworkIsProtseqValidA(unsigned char *protseq) {
UNICODE_STRING protseqW; UNICODE_STRING protseqW;
if (!protseq) return RPC_S_INVALID_RPC_PROTSEQ; /* ? */ if (!protseq) return RPC_S_INVALID_RPC_PROTSEQ; /* ? */
if (RtlCreateUnicodeStringFromAsciiz(&protseqW, protseq)) { if (RtlCreateUnicodeStringFromAsciiz(&protseqW, protseq)) {
RPC_STATUS ret = RpcNetworkIsProtSeqValidW(protseqW.Buffer); RPC_STATUS ret = RpcNetworkIsProtseqValidW(protseqW.Buffer);
RtlFreeUnicodeString(&protseqW); RtlFreeUnicodeString(&protseqW);
return ret; return ret;
} else return RPC_S_OUT_OF_MEMORY; } else return RPC_S_OUT_OF_MEMORY;
} }
/*********************************************************************** /***********************************************************************
* RpcNetworkIsProtSeqValidW (RPCRT4.@) * RpcNetworkIsProtseqValidW (RPCRT4.@)
* *
* Checks if the given protocol sequence is known by the RPC system. * Checks if the given protocol sequence is known by the RPC system.
* If it is, returns RPC_S_OK, otherwise RPC_S_PROTSEQ_NOT_SUPPORTED. * If it is, returns RPC_S_OK, otherwise RPC_S_PROTSEQ_NOT_SUPPORTED.
@ -1045,7 +1045,7 @@ RPC_STATUS RPC_ENTRY RpcNetworkIsProtSeqValidA(unsigned char *protseq) {
* ncalrpc local-only rpc over LPC (LPC is not really used) * ncalrpc local-only rpc over LPC (LPC is not really used)
* ncacn_np rpc over named pipes * ncacn_np rpc over named pipes
*/ */
RPC_STATUS RPC_ENTRY RpcNetworkIsProtSeqValidW(LPWSTR protseq) { RPC_STATUS RPC_ENTRY RpcNetworkIsProtseqValidW(LPWSTR protseq) {
static const WCHAR protseqsW[][15] = { static const WCHAR protseqsW[][15] = {
{'n','c','a','l','r','p','c',0}, {'n','c','a','l','r','p','c',0},
{'n','c','a','c','n','_','n','p',0} {'n','c','a','c','n','_','n','p',0}

View file

@ -100,8 +100,8 @@
@ stdcall RpcMgmtWaitServerListen() @ stdcall RpcMgmtWaitServerListen()
@ stub RpcNetworkInqProtseqsA @ stub RpcNetworkInqProtseqsA
@ stub RpcNetworkInqProtseqsW @ stub RpcNetworkInqProtseqsW
@ stub RpcNetworkIsProtseqValidA @ stdcall RpcNetworkIsProtseqValidA(ptr)
@ stub RpcNetworkIsProtseqValidW @ stdcall RpcNetworkIsProtseqValidW(ptr)
@ stub RpcNsBindingInqEntryNameA @ stub RpcNsBindingInqEntryNameA
@ stub RpcNsBindingInqEntryNameW @ stub RpcNsBindingInqEntryNameW
@ stub RpcObjectInqType @ stub RpcObjectInqType

View file

@ -238,10 +238,10 @@ RPCRTAPI RPC_STATUS RPC_ENTRY
#define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose) #define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
RPCRTAPI RPC_STATUS RPC_ENTRY RPCRTAPI RPC_STATUS RPC_ENTRY
RpcNetworkIsProtSeqValidA( unsigned char *protseq ); RpcNetworkIsProtseqValidA( unsigned char *protseq );
RPCRTAPI RPC_STATUS RPC_ENTRY RPCRTAPI RPC_STATUS RPC_ENTRY
RpcNetworkIsProtSeqValidW( LPWSTR protseq ); RpcNetworkIsProtseqValidW( LPWSTR protseq );
#define RpcNetworkIsProtSeqValid WINELIB_NAME_AW(RpcNetworkIsProtSeqValid) #define RpcNetworkIsProtseqValid WINELIB_NAME_AW(RpcNetworkIsProtseqValid)
RPCRTAPI RPC_STATUS RPC_ENTRY RPCRTAPI RPC_STATUS RPC_ENTRY
RpcStringFreeA(unsigned char** String); RpcStringFreeA(unsigned char** String);