Repository navigation
Commit f4b1b0c
fix: set CREATE_NO_WINDOW on tzutil exec to prevent console flash
When the calling process has no console (e.g. spawned with
DETACHED_PROCESS), tzutil.exe allocates a fresh conhost on first
stdio access, producing a visible window flash.
Setting CREATE_NO_WINDOW gives tzutil a non-visible console,
preventing the flash while still allowing cmd.Output() to capture
the result via pipes.
golang.org/x/sys is already in the module graph via
golang.org/x/sys/windows/registry, so no new dependency is added.
Co-authored-by: Copilot <[email protected]>1 parent 9af4692 commit f4b1b0c
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
0 commit comments