diff options
| author | Eli Zaretskii | 2025-10-02 10:22:37 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2025-10-02 10:22:37 +0300 |
| commit | 2c0cf894f430943c3ea36ca89f2f7ebe8e68a2c6 (patch) | |
| tree | 5a99f42defdea21fcabd9748f1232dd59c7a8599 /src | |
| parent | 17ef2d64e4a61f86bff695e0a28ded92c27f86e6 (diff) | |
| download | emacs-2c0cf894f430943c3ea36ca89f2f7ebe8e68a2c6.tar.gz emacs-2c0cf894f430943c3ea36ca89f2f7ebe8e68a2c6.zip | |
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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -10939,6 +10939,9 @@ w32_reexec_emacs (char *cmd_line, const char *wdir) | |||
| 10939 | DWORD dwCreationFlags = NORMAL_PRIORITY_CLASS; | 10939 | DWORD dwCreationFlags = NORMAL_PRIORITY_CLASS; |
| 10940 | 10940 | ||
| 10941 | GetStartupInfo (&si); /* Use the same startup info as the caller. */ | 10941 | GetStartupInfo (&si); /* Use the same startup info as the caller. */ |
| 10942 | /* Reset undocumented bits in STARTUPINFO flags, as they could cause a | ||
| 10943 | crash in the re-exec'ed Emacs. */ | ||
| 10944 | si.dwFlags &= 0xbbff; /* reset the 0x4000 and 0x0400 bits */ | ||
| 10942 | if (inhibit_window_system) | 10945 | if (inhibit_window_system) |
| 10943 | { | 10946 | { |
| 10944 | HANDLE screen_handle; | 10947 | HANDLE screen_handle; |