Fixed compilation warnings: a few missing declarations, and 2 strange casts on WIN32-specific code.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1712 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2011-02-07 19:39:45 +00:00
parent fdb925979e
commit ce3181b230
5 changed files with 12 additions and 8 deletions

View File

@@ -83,6 +83,8 @@
#include "transform.h"
#include "windows.h"
#include "layers.h"
#include "special.h"
#include "buttons.h"
char Gui_loading_error_message[512];
@@ -2889,7 +2891,7 @@ void Define_icon(void)
// Find the bits for the nID icon.
hresource = FindResource(hInstance,
MAKEINTRESOURCE(nID),
MAKEINTRESOURCE(RT_ICON));
MAKEINTRESOURCE((long)RT_ICON));
if (hresource==NULL)
break;
@@ -2925,7 +2927,7 @@ void Define_icon(void)
// Find the bits for the nID icon.
hresource = FindResource(hInstance,
MAKEINTRESOURCE(nID),
MAKEINTRESOURCE(RT_ICON));
MAKEINTRESOURCE((long)RT_ICON));
if (hresource==NULL)
break;