Author: manolo
Date: 2010-08-26 01:28:35 -0700 (Thu, 26 Aug 2010)
New Revision: 7690
Log:
Fl_Bitmap.cxx: fixed error that could create dereferencing of NULL pointer

Modified:
   branches/branch-1.3/src/Fl_Bitmap.cxx

Modified: branches/branch-1.3/src/Fl_Bitmap.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Bitmap.cxx       2010-08-25 17:01:56 UTC (rev 
7689)
+++ branches/branch-1.3/src/Fl_Bitmap.cxx       2010-08-26 08:28:35 UTC (rev 
7690)
@@ -310,7 +310,7 @@
       hMod = LoadLibrary("MSIMG32.DLL");
       if (hMod) fl_TransparentBlt = (fl_transp_func)GetProcAddress(hMod, 
"TransparentBlt");
     }
-    if (hMod) use_print_algo = true;
+    if (fl_TransparentBlt) use_print_algo = true;
   }
   if (use_print_algo) { // algorithm for bitmap output to Fl_GDI_Printer
     Fl_Offscreen tmp_id = fl_create_offscreen(W, H);

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to