Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
43b415c0
Commit
43b415c0
authored
Nov 08, 2022
by
longpanda
Browse files
Fix an issue that CGI backup tool can not open in WePE.
parent
311d2961
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
INSTALL/ventoy/vtoyjump32.exe
INSTALL/ventoy/vtoyjump32.exe
+0
-0
INSTALL/ventoy/vtoyjump64.exe
INSTALL/ventoy/vtoyjump64.exe
+0
-0
vtoyjump/vtoyjump/vtoyjump.c
vtoyjump/vtoyjump/vtoyjump.c
+2
-8
No files found.
INSTALL/ventoy/vtoyjump32.exe
View file @
43b415c0
No preview for this file type
INSTALL/ventoy/vtoyjump64.exe
View file @
43b415c0
No preview for this file type
vtoyjump/vtoyjump/vtoyjump.c
View file @
43b415c0
...
...
@@ -46,7 +46,7 @@ static CHAR g_prog_name[MAX_PATH];
#define VTOY_PECMD_PATH "X:\\Windows\\system32\\ventoy\\PECMD.EXE"
#define ORG_PECMD_PATH "X:\\Windows\\system32\\PECMD.EXE"
#define ORG_PECMD_BK_PATH "X:\\Windows\\system32\\
PECMD.EXE_BACK
.EXE"
#define ORG_PECMD_BK_PATH "X:\\Windows\\system32\\
VTOYJUMP
.EXE"
#define WIMBOOT_FILE "X:\\Windows\\system32\\vtoy_wimboot"
#define WIMBOOT_DONE "X:\\Windows\\system32\\vtoy_wimboot_done"
...
...
@@ -2533,7 +2533,7 @@ int real_main(int argc, char **argv)
if
(
_stricmp
(
g_prog_name
,
"winpeshl.exe"
)
!=
0
&&
IsFileExist
(
"ventoy
\\
%s"
,
g_prog_name
))
{
sprintf_s
(
NewFile
,
sizeof
(
NewFile
),
"%s
_BACK
.EXE"
,
g_prog_
full_path
);
sprintf_s
(
NewFile
,
sizeof
(
NewFile
),
"%s
\\
VTOYJUMP
.EXE"
,
g_prog_
dir
);
MoveFileA
(
g_prog_full_path
,
NewFile
);
Log
(
"Move <%s> to <%s>"
,
g_prog_full_path
,
NewFile
);
...
...
@@ -2578,12 +2578,6 @@ int real_main(int argc, char **argv)
sprintf_s
(
LunchFile
,
sizeof
(
LunchFile
),
"%s"
,
"cmd.exe"
);
}
if
(
IsFileExist
(
ORG_PECMD_BK_PATH
))
{
Log
(
"Delete backup file <%s>"
,
ORG_PECMD_BK_PATH
);
vtoy_cmd_delete_file
(
ORG_PECMD_BK_PATH
);
}
Log
(
"Backup log at this point"
);
CopyFileA
(
LOG_FILE
,
"X:
\\
Windows
\\
ventoy.backup"
,
TRUE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment