deviceName.clear();
LPDEVNAMES lpDevNames;
- LPTSTR lpszDriverName;
LPTSTR lpszDeviceName;
LPTSTR lpszPortName;
if (pd.hDevNames)
{
lpDevNames = (LPDEVNAMES)GlobalLock(pd.hDevNames);
- lpszDriverName = (LPTSTR)lpDevNames + lpDevNames->wDriverOffset;
lpszDeviceName = (LPTSTR)lpDevNames + lpDevNames->wDeviceOffset;
lpszPortName = (LPTSTR)lpDevNames + lpDevNames->wOutputOffset;
{
#if wxUSE_WXDIB
wxDIB dib(bmp);
- if ( !dib.IsOk() )
+ bool ok = dib.IsOk();
+ if ( !ok )
return FALSE;
DIBSECTION ds;