mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[WINSRV] Fix setting the console title
This commit is contained in:
parent
3d991ea5a7
commit
b2a5f5dbb3
|
@ -2528,9 +2528,9 @@ ConWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
Beep(800, 200);
|
Beep(800, 200);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// case PM_CONSOLE_SET_TITLE:
|
case PM_CONSOLE_SET_TITLE:
|
||||||
// SetWindowTextW(GuiData->hWindow, GuiData->Console->Title.Buffer);
|
SetWindowTextW(GuiData->hWindow, GuiData->Console->Title.Buffer);
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
default: Default:
|
default: Default:
|
||||||
Result = DefWindowProcW(hWnd, msg, wParam, lParam);
|
Result = DefWindowProcW(hWnd, msg, wParam, lParam);
|
||||||
|
|
|
@ -865,8 +865,7 @@ static VOID NTAPI
|
||||||
GuiChangeTitle(IN OUT PFRONTEND This)
|
GuiChangeTitle(IN OUT PFRONTEND This)
|
||||||
{
|
{
|
||||||
PGUI_CONSOLE_DATA GuiData = This->Context;
|
PGUI_CONSOLE_DATA GuiData = This->Context;
|
||||||
// PostMessageW(GuiData->hWindow, PM_CONSOLE_SET_TITLE, 0, 0);
|
PostMessageW(GuiData->hWindow, PM_CONSOLE_SET_TITLE, 0, 0);
|
||||||
SetWindowTextW(GuiData->hWindow, GuiData->Console->Title.Buffer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL NTAPI
|
static BOOL NTAPI
|
||||||
|
|
Loading…
Reference in a new issue