1
0
mirror of https://github.com/adamyg/mcwin32.git synced 2025-04-18 01:17:37 +03:00
This commit is contained in:
adamyg 2025-04-14 22:35:38 +08:00
parent cd8c3be0e0
commit 36f058e95a

View File

@ -260,7 +260,7 @@ ShellAssociation(const wchar_t *argv0)
memset(&sei, 0, sizeof(sei));
sei.cbSize = sizeof(sei);
sei.fMask = SEE_MASK_NOCLOSEPROCESS|SEE_MASK_NO_CONSOLE|SEE_MASK_FLAG_NO_UI;
sei.fMask = SEE_MASK_NOCLOSEPROCESS|SEE_MASK_NO_CONSOLE;
if (! overbose) sei.fMask |= SEE_MASK_FLAG_NO_UI;
// SEE_MASK_NOCLOSEPROCESS
// Use to indicate that the hProcess member receives the process handle.
@ -297,7 +297,7 @@ ShellAssociation(const wchar_t *argv0)
ShimErrorMessage(PROGNAME, dwExitCode);
} else {
ret = EV_SUCCESS;
rc = EV_SUCCESS;
if (owait && sei.hProcess) {
DWORD dwExitCode = 0;
WaitForSingleObject(sei.hProcess, INFINITE);