HGLOBAL hDevNames = (HGLOBAL)(DWORD) m_devNames;
if (!hDevMode)
+ {
return false;
-
- if ( hDevMode )
+ }
+ else
{
LPDEVMODE devMode = (LPDEVMODE)GlobalLock(hDevMode);
data.SetPaperId( wxPAPER_NONE );
data.SetPaperSize( wxSize(0,0) );
m_customWindowsPaperId = 0;
-
+
GlobalUnlock(hDevMode);
return false;
}