kernel: Wsign-compare warning fix.

This commit is contained in:
Michael Stefaniuc 2006-07-28 00:00:06 +02:00 committed by Alexandre Julliard
parent 3879fef21d
commit cd5072f89c
1 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ DWORD WINAPI FormatMessageA(
#define ADD_TO_T(c) do { \
*t++=c;\
if (t-target == talloced) {\
if ((DWORD)(t-target) == talloced) {\
target = HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,target,talloced*2);\
t = target+talloced;\
talloced*=2;\
@ -395,7 +395,7 @@ DWORD WINAPI FormatMessageW(
#define ADD_TO_T(c) do {\
*t++=c;\
if (t-target == talloced) {\
if ((DWORD)(t-target) == talloced) {\
target = HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,target,talloced*2*sizeof(WCHAR));\
t = target+talloced;\
talloced*=2;\