From: longpanda Date: Fri, 23 Jul 2021 15:26:27 +0000 (+0800) Subject: Fix the missing program issue for EasyU X-Git-Tag: v1.0.48~18 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/faa0e46d3a10c1aef321ac024a7cb1dc86ee08d4?ds=sidebyside Fix the missing program issue for EasyU --- diff --git a/INSTALL/ventoy/vtoyjump32.exe b/INSTALL/ventoy/vtoyjump32.exe index d0535a5..8050b0c 100644 Binary files a/INSTALL/ventoy/vtoyjump32.exe and b/INSTALL/ventoy/vtoyjump32.exe differ diff --git a/INSTALL/ventoy/vtoyjump64.exe b/INSTALL/ventoy/vtoyjump64.exe index 73cd8ee..51cb8f4 100644 Binary files a/INSTALL/ventoy/vtoyjump64.exe and b/INSTALL/ventoy/vtoyjump64.exe differ diff --git a/vtoyjump/vtoyjump/vtoyjump.c b/vtoyjump/vtoyjump/vtoyjump.c index eb9bb02..1f1f136 100644 --- a/vtoyjump/vtoyjump/vtoyjump.c +++ b/vtoyjump/vtoyjump/vtoyjump.c @@ -1555,6 +1555,17 @@ int main(int argc, char **argv) Log("######## VentoyJump ##########"); Log("argc = %d argv[0] = <%s>", argc, argv[0]); + //special process for some WinPE + if (_stricmp(argv[0], "WPEINIT.EXE") == 0) + { + GetCurrentDirectoryA(sizeof(CurDir), CurDir); + if (_stricmp(CurDir, "X:\\") == 0) + { + Log("Set current directory to system32"); + SetCurrentDirectoryA("X:\\Windows\\System32"); + } + } + if (Pos && *Pos == 0) { Log("Old current directory = <%s>", CurDir);