Check for NULL ptr in Propsheet_RemovePage (Xing DVD Player).

This commit is contained in:
Marcus Meissner 1999-10-13 12:31:52 +00:00 committed by Alexandre Julliard
parent 7916ca314b
commit 3cdb3f2984
1 changed files with 6 additions and 1 deletions

View File

@ -1486,8 +1486,13 @@ static BOOL PROPSHEET_RemovePage(HWND hwndDlg,
PropSheetInfo * psInfo = (PropSheetInfo*) GetPropA(hwndDlg,
PropSheetInfoStr);
HWND hwndTabControl = GetDlgItem(hwndDlg, IDC_TABCONTROL);
PropPageInfo* oldPages = psInfo->proppage;
PropPageInfo* oldPages;
if (!psInfo) {
FIXME("No psInfo for propertysheet at windows 0x%04x? returning FALSE...\n");
return FALSE;
}
oldPages = psInfo->proppage;
/*
* hpage takes precedence over index.
*/