rpcrt4: Avoid signed-unsigned integer comparisons.

This commit is contained in:
Andrew Talbot 2013-02-25 21:13:56 +00:00 committed by Alexandre Julliard
parent 1a190a9da3
commit 49992c3a5e
1 changed files with 4 additions and 4 deletions

View File

@ -3117,7 +3117,7 @@ RPC_STATUS WINAPI RpcProtseqVectorFreeA(RPC_PROTSEQ_VECTORA **protseqs)
if (*protseqs) if (*protseqs)
{ {
int i; unsigned int i;
for (i = 0; i < (*protseqs)->Count; i++) for (i = 0; i < (*protseqs)->Count; i++)
HeapFree(GetProcessHeap(), 0, (*protseqs)->Protseq[i]); HeapFree(GetProcessHeap(), 0, (*protseqs)->Protseq[i]);
HeapFree(GetProcessHeap(), 0, *protseqs); HeapFree(GetProcessHeap(), 0, *protseqs);
@ -3135,7 +3135,7 @@ RPC_STATUS WINAPI RpcProtseqVectorFreeW(RPC_PROTSEQ_VECTORW **protseqs)
if (*protseqs) if (*protseqs)
{ {
int i; unsigned int i;
for (i = 0; i < (*protseqs)->Count; i++) for (i = 0; i < (*protseqs)->Count; i++)
HeapFree(GetProcessHeap(), 0, (*protseqs)->Protseq[i]); HeapFree(GetProcessHeap(), 0, (*protseqs)->Protseq[i]);
HeapFree(GetProcessHeap(), 0, *protseqs); HeapFree(GetProcessHeap(), 0, *protseqs);
@ -3150,7 +3150,7 @@ RPC_STATUS WINAPI RpcProtseqVectorFreeW(RPC_PROTSEQ_VECTORW **protseqs)
RPC_STATUS WINAPI RpcNetworkInqProtseqsW( RPC_PROTSEQ_VECTORW** protseqs ) RPC_STATUS WINAPI RpcNetworkInqProtseqsW( RPC_PROTSEQ_VECTORW** protseqs )
{ {
RPC_PROTSEQ_VECTORW *pvector; RPC_PROTSEQ_VECTORW *pvector;
int i = 0; unsigned int i;
RPC_STATUS status = RPC_S_OUT_OF_MEMORY; RPC_STATUS status = RPC_S_OUT_OF_MEMORY;
TRACE("(%p)\n", protseqs); TRACE("(%p)\n", protseqs);
@ -3183,7 +3183,7 @@ end:
RPC_STATUS WINAPI RpcNetworkInqProtseqsA(RPC_PROTSEQ_VECTORA** protseqs) RPC_STATUS WINAPI RpcNetworkInqProtseqsA(RPC_PROTSEQ_VECTORA** protseqs)
{ {
RPC_PROTSEQ_VECTORA *pvector; RPC_PROTSEQ_VECTORA *pvector;
int i = 0; unsigned int i;
RPC_STATUS status = RPC_S_OUT_OF_MEMORY; RPC_STATUS status = RPC_S_OUT_OF_MEMORY;
TRACE("(%p)\n", protseqs); TRACE("(%p)\n", protseqs);