Skip to content

Commit 5a38b34

Browse files
Merge pull request #355 from guillep/fix/SetIconOfWindow
Fix set icon of window on windows to use wide chars
2 parents 0060623 + 4ffdfd2 commit 5a38b34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/win32/plugins/HostWindowPlugin/sqWin32HostWindowPlugin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ sqInt ioSetIconOfWindow(sqInt windowIndex, char * iconPath, sqInt sizeOfPath) {
423423
if(len <= 0) return -1; /* invalid UTF8 ? */
424424
iconPathW[len] = 0;
425425
//Check if file exists and have read rights
426-
if (_waccess(iconPath, 4) == -1) { return -1; };
426+
if (_waccess(iconPathW, 4) == -1) { return -1; };
427427
//Load the image into an icon
428428
HICON hIcon = (HICON)LoadImageW(NULL, iconPathW, IMAGE_ICON, 0, 0, LR_LOADFROMFILE);
429429
if (hIcon == 0)

0 commit comments

Comments
 (0)