mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
[CONSRV]: Explicitely use UNICODE SetWindowText API.
svn path=/trunk/; revision=65715
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user