[CONSRV]: Explicitely use UNICODE SetWindowText API.

svn path=/trunk/; revision=65715
This commit is contained in:
Hermès Bélusca-Maïto
2014-12-18 01:35:55 +00:00
parent c6fccde6d2
commit e157eb4929
2 changed files with 4 additions and 4 deletions
@@ -1007,7 +1007,7 @@ UpdateSelection(PGUI_CONSOLE_DATA GuiData,
wcscat(WindowTitle, L" - ");
wcscat(WindowTitle, Console->Title.Buffer);
SetWindowText(GuiData->hWindow, WindowTitle);
SetWindowTextW(GuiData->hWindow, WindowTitle);
ConsoleFreeHeap(WindowTitle);
}
@@ -1027,7 +1027,7 @@ UpdateSelection(PGUI_CONSOLE_DATA GuiData,
ConioUnpause(Console, PAUSED_FROM_SELECTION);
/* Restore the console title */
SetWindowText(GuiData->hWindow, Console->Title.Buffer);
SetWindowTextW(GuiData->hWindow, Console->Title.Buffer);
}
DeleteObject(oldRgn);
@@ -2468,7 +2468,7 @@ ConWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
break;
// case PM_CONSOLE_SET_TITLE:
// SetWindowText(GuiData->hWindow, GuiData->Console->Title.Buffer);
// SetWindowTextW(GuiData->hWindow, GuiData->Console->Title.Buffer);
// break;
default: Default:
@@ -791,7 +791,7 @@ GuiChangeTitle(IN OUT PFRONTEND This)
{
PGUI_CONSOLE_DATA GuiData = This->Context;
// PostMessageW(GuiData->hWindow, PM_CONSOLE_SET_TITLE, 0, 0);
SetWindowText(GuiData->hWindow, GuiData->Console->Title.Buffer);
SetWindowTextW(GuiData->hWindow, GuiData->Console->Title.Buffer);
}
static BOOL NTAPI