Fixed SetTitleA when string resources were to be loaded.

This commit is contained in:
Eric Pouech 1999-11-07 05:28:32 +00:00 committed by Alexandre Julliard
parent 710541fa08
commit e72a9b65c7

View File

@ -1380,10 +1380,17 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
*/
static void PROPSHEET_SetTitleA(HWND hwndDlg, DWORD dwStyle, LPCSTR lpszText)
{
PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg, PropSheetInfoStr);
char szTitle[256];
if (HIWORD(lpszText) == 0) {
if (!LoadStringA(psInfo->ppshheader->hInstance,
LOWORD(lpszText), szTitle, sizeof(szTitle)-1))
return;
lpszText = szTitle;
}
if (dwStyle & PSH_PROPTITLE)
{
PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwndDlg,
PropSheetInfoStr);
char* dest;
int lentitle = strlen(lpszText);
int lenprop = strlen(psInfo->strPropertiesFor);