mirror of https://github.com/ventoy/Ventoy.git
Fix the missing program issue for EasyU
This commit is contained in:
parent
537f0eaa7e
commit
faa0e46d3a
Binary file not shown.
Binary file not shown.
|
@ -1555,6 +1555,17 @@ int main(int argc, char **argv)
|
||||||
Log("######## VentoyJump ##########");
|
Log("######## VentoyJump ##########");
|
||||||
Log("argc = %d argv[0] = <%s>", argc, argv[0]);
|
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)
|
if (Pos && *Pos == 0)
|
||||||
{
|
{
|
||||||
Log("Old current directory = <%s>", CurDir);
|
Log("Old current directory = <%s>", CurDir);
|
||||||
|
|
Loading…
Reference in New Issue