aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-12-30 15:44:14 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-31 19:11:34 +0200
commit500c39cb07d21aa6857e204f6689d324afd758c4 (patch)
treed03887d9867d0afbd32ae261b665b696f9e4a734
parent27d5c1c3f91ec320f5d0de23bc9729737d3dca52 (diff)
downloadmeson-500c39cb07d21aa6857e204f6689d324afd758c4.zip
meson-500c39cb07d21aa6857e204f6689d324afd758c4.tar.gz
meson-500c39cb07d21aa6857e204f6689d324afd758c4.tar.bz2
Fix test cases/windows/5 resources
Currently, this test only tries to load a predefined icon, so the resource compilation and linking can be completely removed from the meson.build and it still passes. Change to try to load the icon contained in the resources we compile.
-rw-r--r--test cases/windows/5 resources/prog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/windows/5 resources/prog.c b/test cases/windows/5 resources/prog.c
index 2c6f153..2bef6a2 100644
--- a/test cases/windows/5 resources/prog.c
+++ b/test cases/windows/5 resources/prog.c
@@ -9,6 +9,6 @@ WinMain(
LPSTR lpszCmdLine,
int nCmdShow) {
HICON hIcon;
- hIcon = LoadIcon(NULL, IDI_APPLICATION);
+ hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(MY_ICON));
return hIcon ? 0 : 1;
}