From 29a96e1e0de3d94f3eaabfdd81316a83df5fed9d Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Wed, 17 Feb 1999 10:20:30 +0000 Subject: [PATCH] Change type of mode argument to GETVDMPOINTER32W from DWORD to Word --- if1632/kernel.spec | 2 +- memory/selector.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/if1632/kernel.spec b/if1632/kernel.spec index f5ea0b6e505..0c04936221a 100644 --- a/if1632/kernel.spec +++ b/if1632/kernel.spec @@ -420,7 +420,7 @@ file krnl386.exe 513 pascal LoadLibraryEx32W(ptr long long) LoadLibraryEx32W16 # Both NT/95 514 pascal16 FreeLibrary32W(long) FreeLibrary32 # Both NT/95 515 pascal GetProcAddress32W(long str) GetProcAddress32 # Both NT/95 -516 pascal GetVDMPointer32W(segptr long) GetVDMPointer32W # Both NT/95 +516 pascal GetVDMPointer32W(segptr word) GetVDMPointer32W # Both NT/95 517 pascal CallProc32W() WIN16_CallProc32W # Both NT/95 518 pascal CallProcEx32W() WIN16_CallProcEx32W # Both NT/95 519 stub EXITKERNELTHUNK diff --git a/memory/selector.c b/memory/selector.c index 2e2b6ff23cc..6480aec3cbf 100644 --- a/memory/selector.c +++ b/memory/selector.c @@ -761,9 +761,9 @@ LPVOID WINAPI WOWGetVDMPointer(DWORD vp,DWORD nrofbytes,BOOL32 protected) /********************************************************************** * GetVDMPointer32W (KERNEL.516) */ -LPVOID WINAPI GetVDMPointer32W(DWORD vp,DWORD mode) +LPVOID WINAPI GetVDMPointer32W(DWORD vp,WORD mode) { - return WOWGetVDMPointer(vp,0,mode); + return WOWGetVDMPointer(vp,0,(DWORD)mode); } /**********************************************************************