summaryrefslogtreecommitdiff
path: root/plugins/Scriver/globals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/globals.cpp')
-rw-r--r--plugins/Scriver/globals.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Scriver/globals.cpp b/plugins/Scriver/globals.cpp
index d92ca958f4..a9cfb0bf47 100644
--- a/plugins/Scriver/globals.cpp
+++ b/plugins/Scriver/globals.cpp
@@ -24,7 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "m_ieview.h"
struct GlobalMessageData *g_dat=NULL;
-extern HINSTANCE g_hInst;
extern PSLWA pSetLayeredWindowAttributes;
HANDLE hEventSkin2IconsChanged;
@@ -228,7 +227,7 @@ void LoadGlobalIcons() {
overlayIcon = ImageList_AddIcon(g_dat->hHelperIconList, GetCachedIcon("scriver_OVERLAY"));
ImageList_SetOverlayImage(g_dat->hHelperIconList, overlayIcon, 1);
for (i=0; i<IDI_FOODNETWORK - IDI_GOOGLE + 1; i++) {
- HICON hIcon = LoadImage(g_hInst, MAKEINTRESOURCE(IDI_GOOGLE + i), IMAGE_ICON, 0, 0, 0);
+ HICON hIcon = (HICON)LoadImage(g_hInst, MAKEINTRESOURCE(IDI_GOOGLE + i), IMAGE_ICON, 0, 0, 0);
ImageList_AddIcon(g_dat->hSearchEngineIconList, hIcon);
DestroyIcon(hIcon);
}