Windows: Fixed compile error

This commit is contained in:
Elias Naur 2006-07-01 05:33:14 +00:00
parent ecb7e3bb4e
commit 33540d8195
1 changed files with 2 additions and 2 deletions

View File

@ -481,7 +481,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Win32Display_nSetWindowIcon16
freeSmallIcon();
small_icon = createWindowIcon(env, imgData, 16, 16);
if (newIcon != NULL) {
if (small_icon != NULL) {
if (display_hwnd != NULL) {
SendMessage(display_hwnd, WM_SETICON, ICON_SMALL, (LPARAM) (small_icon));
@ -499,7 +499,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_Win32Display_nSetWindowIcon32
freeLargeIcon();
large_icon = createWindowIcon(env, imgData, 32, 32);
if (newIcon != NULL) {
if (large_icon != NULL) {
if (display_hwnd != NULL) {
SendMessage(display_hwnd, WM_SETICON, ICON_BIG, (LPARAM) (large_icon));