We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7384765 commit 84090f9Copy full SHA for 84090f9
src/os/win32/dev-stdio.c
@@ -249,7 +249,7 @@ static void Close_StdIO_Local(void)
249
// WindowTitle.
250
// Fetch current window title.
251
252
- GetConsoleTitle((LPWSTR)pszOldWindowTitle, MY_BUFSIZE);
+ GetConsoleTitle((LPWSTR)pszOldWindowTitle, MY_BUFSIZE>>1); // size is in wide chars, not bytes!
253
254
// Format a "unique" NewWindowTitle.
255
wsprintf((LPWSTR)pszNewWindowTitle, (LPCWSTR)"%d/%d",
0 commit comments