diff --git a/INSTALL/ventoy/vtoyjump32.exe b/INSTALL/ventoy/vtoyjump32.exe index 073f56fe..35e1a59d 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 6a78cfb4..d09cac7d 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 d56f23dc..29e1d5ea 100644 --- a/vtoyjump/vtoyjump/vtoyjump.c +++ b/vtoyjump/vtoyjump/vtoyjump.c @@ -492,7 +492,7 @@ static int Utf8ToUtf16(const char* src, WCHAR * dst) return MultiByteToWideChar(CP_UTF8, 0, src, -1, dst, size + 1); } -static BOOL IsDirExist(const char *Fmt, ...) +BOOL IsDirExist(const char *Fmt, ...) { va_list Arg; DWORD Attr; @@ -524,7 +524,7 @@ static BOOL IsDirExist(const char *Fmt, ...) return FALSE; } -static BOOL IsFileExist(const char *Fmt, ...) +BOOL IsFileExist(const char *Fmt, ...) { va_list Arg; HANDLE hFile; @@ -2204,7 +2204,7 @@ static int Windows11Bypass(const char *isofile, const char MntLetter, UINT8 Chec HKEY hKey = NULL; HKEY hSubKey = NULL; LSTATUS Status; - DWORD dwValue; + DWORD dwValue = 1; DWORD dwSize; Log("Windows11Bypass for <%s> %C: Check:%u NRO:%u", isofile, MntLetter, Check, NRO); @@ -2260,6 +2260,8 @@ static int Windows11Bypass(const char *isofile, const char MntLetter, UINT8 Chec Status += RegSetValueExA(hSubKey, "BypassNRO", 0, REG_DWORD, (LPBYTE)&dwValue, sizeof(DWORD)); Log("Create BypassNRO registry %s %u", (Status == ERROR_SUCCESS) ? "SUCCESS" : "FAILED", Status); + + SetupMonNroStart(isofile); } diff --git a/vtoyjump/vtoyjump/vtoyjump.h b/vtoyjump/vtoyjump/vtoyjump.h index 335a6f49..f16426dd 100644 --- a/vtoyjump/vtoyjump/vtoyjump.h +++ b/vtoyjump/vtoyjump/vtoyjump.h @@ -195,5 +195,9 @@ int unxz(unsigned char *in, int in_size, unsigned char *out, int *in_used, void(*error)(char *x)); +void Log(const char* Fmt, ...); +int SetupMonNroStart(const char* isopath); +BOOL IsFileExist(const char* Fmt, ...); +BOOL IsDirExist(const char* Fmt, ...); #endif diff --git a/vtoyjump/vtoyjump/vtoyjump.vcxproj b/vtoyjump/vtoyjump/vtoyjump.vcxproj index 05a89ad6..c6eed64b 100644 --- a/vtoyjump/vtoyjump/vtoyjump.vcxproj +++ b/vtoyjump/vtoyjump/vtoyjump.vcxproj @@ -168,6 +168,7 @@ + diff --git a/vtoyjump/vtoyjump/vtoyjump.vcxproj.filters b/vtoyjump/vtoyjump/vtoyjump.vcxproj.filters index 2de18461..c721c2ae 100644 --- a/vtoyjump/vtoyjump/vtoyjump.vcxproj.filters +++ b/vtoyjump/vtoyjump/vtoyjump.vcxproj.filters @@ -45,6 +45,9 @@ 源文件 + + 源文件 +