From 23303736e3cb6a51e72dec08660ca06902925adb Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 26 Aug 2010 08:28:35 +0000 Subject: Fl_Bitmap.cxx: fixed error that could create dereferencing of NULL pointer git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7690 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Bitmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Bitmap.cxx b/src/Fl_Bitmap.cxx index 163ae130f..50141dcd3 100644 --- a/src/Fl_Bitmap.cxx +++ b/src/Fl_Bitmap.cxx @@ -310,7 +310,7 @@ void Fl_GDI_Graphics_Driver::draw(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, 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); -- cgit v1.2.3