Commit 7b06d984 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Fixes a few of the many compiler warnings.

parent 698a8b17
...@@ -999,7 +999,7 @@ HBITMAP32 WINAPI CreateDIBSection32 (HDC32 hdc, BITMAPINFO *bmi, UINT32 usage, ...@@ -999,7 +999,7 @@ HBITMAP32 WINAPI CreateDIBSection32 (HDC32 hdc, BITMAPINFO *bmi, UINT32 usage,
/* Clean up in case of errors */ /* Clean up in case of errors */
if (!res || !bmp || !dib || !bm.bmBits || (bm.bmBitsPixel <= 8 && !colorMap)) if (!res || !bmp || !dib || !bm.bmBits || (bm.bmBitsPixel <= 8 && !colorMap))
{ {
TRACE(bitmap, "got an error res=%lu, bmp=%p, dib=%p, bm.bmBits=%p\n", TRACE(bitmap, "got an error res=%08x, bmp=%p, dib=%p, bm.bmBits=%p\n",
res, bmp, dib, bm.bmBits); res, bmp, dib, bm.bmBits);
if (bm.bmBits) if (bm.bmBits)
{ {
......
...@@ -514,7 +514,7 @@ UINT32 WINAPI GetEnhMetaFilePaletteEntries(HENHMETAFILE32 hemf, ...@@ -514,7 +514,7 @@ UINT32 WINAPI GetEnhMetaFilePaletteEntries(HENHMETAFILE32 hemf,
LPPALETTEENTRY lppe) LPPALETTEENTRY lppe)
{ {
LPENHMETAHEADER h = GlobalLock32(hemf); LPENHMETAHEADER h = GlobalLock32(hemf);
UINT32 temp = h->nPalEntries;
if ( h == NULL ){ if ( h == NULL ){
GlobalUnlock32(hemf); GlobalUnlock32(hemf);
return(0); return(0);
...@@ -545,7 +545,7 @@ HENHMETAFILE32 WINAPI SetWinMetaFileBits(UINT32 cbBuffer, ...@@ -545,7 +545,7 @@ HENHMETAFILE32 WINAPI SetWinMetaFileBits(UINT32 cbBuffer,
) )
{ {
FIXME(metafile,"Stub\n"); FIXME(metafile,"Stub\n");
return NULL; return 0;
} }
......
...@@ -217,7 +217,8 @@ BOOL32 WINAPI SetConsoleCtrlHandler( HANDLER_ROUTINE *func, BOOL32 add ) ...@@ -217,7 +217,8 @@ BOOL32 WINAPI SetConsoleCtrlHandler( HANDLER_ROUTINE *func, BOOL32 add )
done++; done++;
} }
if (!done) if (!done)
WARN(console, "Attempt to remove non-installed CtrlHandler %p\n"); WARN(console, "Attempt to remove non-installed CtrlHandler %p\n",
func);
return (done); return (done);
} }
return (done); return (done);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment