diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c index 04988045d2d..73871ca5c15 100644 --- a/dlls/comctl32/propsheet.c +++ b/dlls/comctl32/propsheet.c @@ -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);