mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[WINSRV] Fix setting the console title
This commit is contained in:
@@ -2528,9 +2528,9 @@ ConWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||
Beep(800, 200);
|
||||
break;
|
||||
|
||||
// case PM_CONSOLE_SET_TITLE:
|
||||
// SetWindowTextW(GuiData->hWindow, GuiData->Console->Title.Buffer);
|
||||
// break;
|
||||
case PM_CONSOLE_SET_TITLE:
|
||||
SetWindowTextW(GuiData->hWindow, GuiData->Console->Title.Buffer);
|
||||
break;
|
||||
|
||||
default: Default:
|
||||
Result = DefWindowProcW(hWnd, msg, wParam, lParam);
|
||||
|
||||
@@ -865,8 +865,7 @@ static VOID NTAPI
|
||||
GuiChangeTitle(IN OUT PFRONTEND This)
|
||||
{
|
||||
PGUI_CONSOLE_DATA GuiData = This->Context;
|
||||
// PostMessageW(GuiData->hWindow, PM_CONSOLE_SET_TITLE, 0, 0);
|
||||
SetWindowTextW(GuiData->hWindow, GuiData->Console->Title.Buffer);
|
||||
PostMessageW(GuiData->hWindow, PM_CONSOLE_SET_TITLE, 0, 0);
|
||||
}
|
||||
|
||||
static BOOL NTAPI
|
||||
|
||||
Reference in New Issue
Block a user