Fixes a few of the many compiler warnings.
diff --git a/objects/dib.c b/objects/dib.c
index 662426f..81f20fb 100644
--- a/objects/dib.c
+++ b/objects/dib.c
@@ -999,7 +999,7 @@
/* Clean up in case of errors */
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);
if (bm.bmBits)
{
diff --git a/objects/enhmetafile.c b/objects/enhmetafile.c
index 494034f..c57b127 100644
--- a/objects/enhmetafile.c
+++ b/objects/enhmetafile.c
@@ -514,7 +514,7 @@
LPPALETTEENTRY lppe)
{
LPENHMETAHEADER h = GlobalLock32(hemf);
- UINT32 temp = h->nPalEntries;
+
if ( h == NULL ){
GlobalUnlock32(hemf);
return(0);
@@ -545,7 +545,7 @@
)
{
FIXME(metafile,"Stub\n");
- return NULL;
+ return 0;
}
diff --git a/win32/console.c b/win32/console.c
index 03d66f5..2015220 100644
--- a/win32/console.c
+++ b/win32/console.c
@@ -217,7 +217,8 @@
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);