[PATCH v2 0/3] Fix for BZ52048
Eric Pouech
eric.pouech at gmail.com
Tue Feb 15 10:43:21 CST 2022
As described in bugzilla ticket, when calling CreateProcess:
- with "default" console inheritance (no CREATE_NEW_CONSOLE
nor DETACHED_PROCESS flags),
- when parent is not attached to a console
- and when the child's subsystem is CUI
, native behaves as if CREATE_NEW_CONSOLE was passed.
builtin doesn't...
this serie:
- adds a test case for showing the CUI/GUI discrepancies
- fixes kernelbase accordingly
- but also requires to fix all usage of CreateProcess in Wine Code
that would now generate the creation of a console
+ one patch of wow64 redirection (only for CUI executables)
+ when looking to the other usage of CreateProcess, I only convinced
myself to adapt one of them
V1 => V2:
- don't mess up with the number of patches in the serie
- no longer modify makedep for creating cui vs gui test executable, but
copy current *_test.exe executable and adapt its subsystem to the need
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52048
A+
---
Eric Pouech (3):
dlls/kernel32/tests: add some console tests about creating cui vs gui processes
programs: don't recreate a console when redirecting a program to wow64
dlls/kernelbase: handle corner case in CreateProcess
dlls/kernel32/tests/console.c | 85 +++++++++++++++++++++++++++++++++++
dlls/kernelbase/process.c | 6 ++-
programs/services/services.c | 2 +-
programs/uninstaller/main.c | 6 ++-
programs/winedbg/winedbg.c | 3 +-
programs/wusa/main.c | 3 +-
6 files changed, 99 insertions(+), 6 deletions(-)
More information about the wine-devel
mailing list