kernel32: Fix some compilation warnings in 64-bit mode.

This commit is contained in:
Dmitry Timoshkov 2007-05-30 19:31:52 +09:00 committed by Alexandre Julliard
parent 63322dbaa5
commit 545a71302b
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ extern THHOOK *pThhook;
(((offset)+(size) <= pModule->mapping_size) ? \
(memcpy( buffer, (const char *)pModule->mapping + (offset), (size) ), TRUE) : FALSE)
#define CURRENT_STACK16 ((STACK16FRAME*)MapSL((SEGPTR)NtCurrentTeb()->WOW32Reserved))
#define CURRENT_STACK16 ((STACK16FRAME*)MapSL(PtrToUlong(NtCurrentTeb()->WOW32Reserved)))
#define CURRENT_DS (CURRENT_STACK16->ds)
/* push bytes on the 16-bit stack of a thread; return a segptr to the first pushed byte */

View File

@ -482,7 +482,7 @@ SEGPTR WINAPI MapLS( LPCVOID ptr )
if (!HIWORD(ptr)) return (SEGPTR)LOWORD(ptr);
base = (const char *)ptr - ((unsigned int)ptr & 0x7fff);
base = (const char *)ptr - ((ULONG_PTR)ptr & 0x7fff);
HeapLock( GetProcessHeap() );
for (entry = first_entry; entry; entry = entry->next)
{