1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00

Fix 'restart-emacs' on MS-Windows

* src/w32.c (w32_reexec_emacs): Reset undocumented bits in
STARTUPINFO flags.  Suggested by yhr0x43 <yhr0x43@gmail.com>.
(Bug#79554)
This commit is contained in:
Eli Zaretskii 2025-10-02 10:22:37 +03:00
parent 17ef2d64e4
commit 2c0cf894f4

View file

@ -10939,6 +10939,9 @@ w32_reexec_emacs (char *cmd_line, const char *wdir)
DWORD dwCreationFlags = NORMAL_PRIORITY_CLASS;
GetStartupInfo (&si); /* Use the same startup info as the caller. */
/* Reset undocumented bits in STARTUPINFO flags, as they could cause a
crash in the re-exec'ed Emacs. */
si.dwFlags &= 0xbbff; /* reset the 0x4000 and 0x0400 bits */
if (inhibit_window_system)
{
HANDLE screen_handle;