https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b2a5f5dbb3660085cd109…
commit b2a5f5dbb3660085cd1099dc4103192e164ee80e
Author: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
AuthorDate: Mon Dec 17 10:50:50 2018 +0200
Commit: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
CommitDate: Wed Dec 19 16:13:18 2018 +0200
[WINSRV] Fix setting the console title
---
win32ss/user/winsrv/consrv/frontends/gui/conwnd.c | 6 +++---
win32ss/user/winsrv/consrv/frontends/gui/guiterm.c | 3 +--
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
b/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
index 2c48f7841b..9da1e92e76 100644
--- a/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
+++ b/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
@@ -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);
diff --git a/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
b/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
index 258b1e28e6..1468363517 100644
--- a/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
+++ b/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
@@ -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