Commit faa0e46d authored by longpanda's avatar longpanda
Browse files

Fix the missing program issue for EasyU

parent 537f0eaa
...@@ -1555,6 +1555,17 @@ int main(int argc, char **argv) ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment