]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xpm/create.c
Const casting fix for Vis C.
[wxWidgets.git] / src / xpm / create.c
index cf198e1d2c5cedcb150ebc4e19a9e2f7889801ee..85537529f384da6751fa013c27a5a54026fb840a 100644 (file)
@@ -865,7 +865,7 @@ XpmCreateImageFromXpmImage(display, image,
 #endif
 {
 #ifdef __OS2__
-     HAB          hab;
+     HAB          hab = WinQueryAnchorBlock(HWND_DESKTOP);
      HPS          hps;
      SIZEL        sizl = {0, 0};
 #endif
@@ -2578,7 +2578,7 @@ ParseAndPutPixels(
 {
     unsigned int a, x, y;
 #ifdef __OS2__
-     HAB          hab;
+     HAB          hab = WinQueryAnchorBlock(HWND_DESKTOP);
      DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL, NULL, NULL, NULL};
      SIZEL        sizl = {0, 0};
      POINTL       point;