[SHIMGVW] Fix cursor (#1471)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Fri, 5 Apr 2019 07:52:11 +0000 (16:52 +0900)
committerGitHub <noreply@github.com>
Fri, 5 Apr 2019 07:52:11 +0000 (16:52 +0900)
Fix the cursor of shimgvw.dll. CORE-15219

dll/win32/shimgvw/shimgvw.c

index c65410b..46553b3 100644 (file)
@@ -1030,7 +1030,7 @@ ImageView_CreateWindow(HWND hwnd, LPWSTR szFileName)
     WndClass.hInstance      = hInstance;
     WndClass.style          = CS_HREDRAW | CS_VREDRAW;
     WndClass.hIcon          = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_APPICON));
-    WndClass.hCursor        = LoadCursor(hInstance, IDC_ARROW);
+    WndClass.hCursor        = LoadCursor(NULL, IDC_ARROW);
     WndClass.hbrBackground  = NULL;   /* less flicker */
 
     if (!RegisterClass(&WndClass)) return -1;