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 zoomY;
int count;
int saveX;
int saveX = 0;
int saveY;
BOOLEAN DesIsBiggerY=FALSE;

View file

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

View file

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

View file

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

View file

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