From 4ffdfd2d16e6b104fcdb015e233a1b065abedee0 Mon Sep 17 00:00:00 2001 From: Guille Polito Date: Thu, 17 Jan 2019 15:08:31 +0000 Subject: [PATCH] Fix set icon of window on windows to use wide chars --- .../win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c b/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c index 0633ff0882..49ca421a10 100644 --- a/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c +++ b/platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c @@ -423,7 +423,7 @@ sqInt ioSetIconOfWindow(sqInt windowIndex, char * iconPath, sqInt sizeOfPath) { if(len <= 0) return -1; /* invalid UTF8 ? */ iconPathW[len] = 0; //Check if file exists and have read rights - if (_waccess(iconPath, 4) == -1) { return -1; }; + if (_waccess(iconPathW, 4) == -1) { return -1; }; //Load the image into an icon HICON hIcon = (HICON)LoadImageW(NULL, iconPathW, IMAGE_ICON, 0, 0, LR_LOADFROMFILE); if (hIcon == 0)