- lScans = ::GpiSetBitmapBits( hPS
- ,0 // Start at the bottom
- ,(LONG)nHeight // One line per scan
- ,(PBYTE)pucBits
- ,&vInfo
- );
+ if ((lScans = ::GpiSetBitmapBits( hPS
+ ,0 // Start at the bottom
+ ,(LONG)nHeight // One line per scan
+ ,(PBYTE)pucBits
+ ,&vInfo
+ )) == GPI_ALTERROR)
+ {
+ ERRORID vError;
+ wxString sError;
+
+ vError = ::WinGetLastError(vHabmain);
+ sError = wxPMErrorToStr(vError);
+ }
+