Fix win32k build errors so HEAD can build again, although most are caused by poor programming and will crash if called with unexpected parameters that aren't being properly handled.

svn path=/trunk/; revision=17707
This commit is contained in:
Alex Ionescu 2005-09-06 23:05:13 +00:00
parent 76e45d3466
commit 77163e53d7
5 changed files with 7 additions and 4 deletions

View file

@ -514,7 +514,7 @@ BOOLEAN DIB_1BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
int zoomX; int zoomX;
int zoomY; int zoomY;
int count; int count;
int saveX; int saveX = 0;
int saveY; int saveY;
BOOLEAN DesIsBiggerY=FALSE; BOOLEAN DesIsBiggerY=FALSE;

View file

@ -528,7 +528,10 @@ XLATEOBJ_cGetPalette(XLATEOBJ *XlateObj, ULONG PalOutType, ULONG cPal,
else if (PalOutType == XO_DESTPALETTE) else if (PalOutType == XO_DESTPALETTE)
hPalette = XlateGDI->DestPal; hPalette = XlateGDI->DestPal;
else else
{
UNIMPLEMENTED; UNIMPLEMENTED;
return 0;
}
PalGDI = PALETTE_LockPalette(hPalette); PalGDI = PALETTE_LockPalette(hPalette);
if(PalGDI != NULL) if(PalGDI != NULL)

View file

@ -1024,7 +1024,7 @@ W32kKeyProcessMessage(LPMSG Msg,
{ VK_UP, VK_NUMPAD8 }, { VK_UP, VK_NUMPAD8 },
{ VK_PRIOR, VK_NUMPAD9 }, { VK_PRIOR, VK_NUMPAD9 },
{ 0,0 } }; { 0,0 } };
PVSC_VK VscVkTable; PVSC_VK VscVkTable = NULL;
if( !KeyboardLayout || !Msg || if( !KeyboardLayout || !Msg ||
(Msg->message != WM_KEYDOWN && Msg->message != WM_SYSKEYDOWN && (Msg->message != WM_KEYDOWN && Msg->message != WM_SYSKEYDOWN &&

View file

@ -1656,7 +1656,7 @@ NtUserGetMenuItemRect(
ROSMENUITEMINFO mii; ROSMENUITEMINFO mii;
HWND referenceHwnd; HWND referenceHwnd;
LPPOINT lpPoints; LPPOINT lpPoints;
LPRECT lpRect; LPRECT lpRect = NULL;
POINT FromOffset; POINT FromOffset;
LONG XMove, YMove; LONG XMove, YMove;
ULONG i; ULONG i;

View file

@ -1441,7 +1441,7 @@ NtGdiSetDCState ( HDC hDC, HDC hDCSave )
INT FASTCALL INT FASTCALL
IntGdiGetDeviceCaps(PDC dc, INT Index) IntGdiGetDeviceCaps(PDC dc, INT Index)
{ {
INT ret; INT ret = 0;
POINT pt; POINT pt;
/* Retrieve capability */ /* Retrieve capability */