diff options
| author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-12-30 15:44:14 +0000 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-31 19:11:34 +0200 |
| commit | 500c39cb07d21aa6857e204f6689d324afd758c4 (patch) | |
| tree | d03887d9867d0afbd32ae261b665b696f9e4a734 | |
| parent | 27d5c1c3f91ec320f5d0de23bc9729737d3dca52 (diff) | |
| download | meson-500c39cb07d21aa6857e204f6689d324afd758c4.tar.gz | |
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.c | 2 |
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 2c6f1535d..2bef6a278 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; } |
