mirror of
https://github.com/reactos/reactos.git
synced 2026-06-04 18:30:41 +08:00
[OPENGLCFG] Fix crash if no drivers (#1919)
Actually, it crashes here on Windows XP.
This commit is contained in:
committed by
Hermès BÉLUSCA - MAÏTO
parent
c57d4d7b9e
commit
e7b8f27309
@@ -190,13 +190,14 @@ INT_PTR CALLBACK GeneralPageProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM
|
||||
break;
|
||||
|
||||
case WM_DESTROY:
|
||||
{
|
||||
if (pOglDrivers != NULL)
|
||||
{
|
||||
INT iKey;
|
||||
for (iKey = 0; iKey <= dwNumDrivers; iKey++)
|
||||
HeapFree(GetProcessHeap(), 0, pOglDrivers[iKey]);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, pOglDrivers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user