Fixed memory allocation bug in PROPSHEET_CollectPageInfo.

This commit is contained in:
Maciek Kaliszewski 2002-05-28 22:41:19 +00:00 committed by Alexandre Julliard
parent f81982aeed
commit 2ad82e119e
1 changed files with 1 additions and 2 deletions

View File

@ -483,7 +483,7 @@ BOOL PROPSHEET_CollectPageInfo(LPCPROPSHEETPAGEW lppsp,
else
pTitle = lppsp->pszTitle;
len = strlenW(szTitle);
len = strlenW(pTitle);
psInfo->proppage[index].pszText = COMCTL32_Alloc( (len+1)*sizeof (WCHAR) );
strcpyW( (LPWSTR)psInfo->proppage[index].pszText,pTitle);
}
@ -1310,7 +1310,6 @@ static BOOL PROPSHEET_ShowPage(HWND hwndDlg, int index, PropSheetInfo * psInfo)
*/
static BOOL PROPSHEET_Back(HWND hwndDlg)
{
BOOL res;
PSHNOTIFY psn;
HWND hwndPage;
PropSheetInfo* psInfo = (PropSheetInfo*) GetPropW(hwndDlg,