Removed ::UpdateWindow from scrolwin.cpp; corrected default extension appending;
corrected bug in dcprint.cpp that tried to access deleted memory git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -247,12 +247,13 @@ static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
|
||||
lpszDriverName = (LPSTR)lpDevNames + lpDevNames->wDriverOffset;
|
||||
lpszDeviceName = (LPSTR)lpDevNames + lpDevNames->wDeviceOffset;
|
||||
lpszPortName = (LPSTR)lpDevNames + lpDevNames->wOutputOffset;
|
||||
GlobalUnlock(pd.hDevNames);
|
||||
GlobalFree(pd.hDevNames);
|
||||
pd.hDevNames=NULL;
|
||||
|
||||
deviceName = lpszDeviceName;
|
||||
portName = lpszPortName;
|
||||
|
||||
GlobalUnlock(pd.hDevNames);
|
||||
GlobalFree(pd.hDevNames);
|
||||
pd.hDevNames=NULL;
|
||||
}
|
||||
|
||||
if (pd.hDevMode)
|
||||
|
Reference in New Issue
Block a user