Get rid of a W->A cross call in ImageList_LoadImageW.
authorVincent Béron <vberon@mecano.gme.usherb.ca>
Fri, 16 Jan 2004 02:01:46 +0000 (02:01 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 16 Jan 2004 02:01:46 +0000 (02:01 +0000)
dlls/comctl32/imagelist.c

index 78d33ab03deffda86a747aa336dbfbabd2f17aac..dbcfb07eaf28851f88b516e319efd2667aeba590 100644 (file)
@@ -1652,7 +1652,7 @@ ImageList_LoadImageW (HINSTANCE hi, LPCWSTR lpbmp, INT cx, INT cGrow,
 
     if (uType == IMAGE_BITMAP) {
         BITMAP bmp;
-        GetObjectA (handle, sizeof(BITMAP), &bmp);
+        GetObjectW (handle, sizeof(BITMAP), &bmp);
 
         /* To match windows behavior, if cx is set to zero and
          the flag DI_DEFAULTSIZE is specified, cx becomes the