mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
Fixed SetTitleA when string resources were to be loaded.
This commit is contained in:
parent
710541fa08
commit
e72a9b65c7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user