diff --git a/INSTALL/ventoy/vtoyjump32.exe b/INSTALL/ventoy/vtoyjump32.exe index d0535a50..8050b0c3 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 73cd8eed..51cb8f41 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 eb9bb022..1f1f1364 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);