Michael Stefaniuc : comctl32/tests: comctl32.dll is already loaded.
Alexandre Julliard
julliard at winehq.org
Wed Oct 2 15:49:13 CDT 2013
Module: wine
Branch: master
Commit: 37caf788b56297f0e016d44ded3734cc5b164866
URL: http://source.winehq.org/git/wine.git/?a=commit;h=37caf788b56297f0e016d44ded3734cc5b164866
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Mon Sep 30 23:40:14 2013 +0200
comctl32/tests: comctl32.dll is already loaded.
---
dlls/comctl32/tests/rebar.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/tests/rebar.c b/dlls/comctl32/tests/rebar.c
index 331af28..efa6b1e 100644
--- a/dlls/comctl32/tests/rebar.c
+++ b/dlls/comctl32/tests/rebar.c
@@ -578,7 +578,8 @@ static void test_layout(void)
check_sizes();
/* an image will increase the band height */
- himl = ImageList_LoadImage(LoadLibrary("comctl32"), MAKEINTRESOURCE(121), 24, 2, CLR_NONE, IMAGE_BITMAP, LR_DEFAULTCOLOR);
+ himl = ImageList_LoadImageA(GetModuleHandleA("comctl32"), MAKEINTRESOURCEA(121), 24, 2,
+ CLR_NONE, IMAGE_BITMAP, LR_DEFAULTCOLOR);
ri.cbSize = sizeof(ri);
ri.fMask = RBIM_IMAGELIST;
ri.himl = himl;
More information about the wine-cvs
mailing list