mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-01 07:18:29 -04:00
[togo] improve Windows To Go support for Windows 10 Creators Update
* Enable the use of GPT on REMOVABLE drives, if the host is Windows 10 CU * Don't display the message about REMOVABLE boot, if the target is Windows 10 CU
This commit is contained in:
parent
fff4465b1d
commit
aec2736245
5 changed files with 38 additions and 22 deletions
|
@ -34,6 +34,7 @@
|
|||
|
||||
extern BOOL usb_debug; // For uuprintf
|
||||
int nWindowsVersion = WINDOWS_UNDEFINED;
|
||||
int nWindowsBuildNumber = -1;
|
||||
char WindowsVersionStr[128] = "Windows ";
|
||||
|
||||
PF_TYPE_DECL(WINAPI, int, LCIDToLocaleName, (LCID, LPWSTR, int, DWORD));
|
||||
|
@ -328,6 +329,7 @@ void GetWindowsVersion(void)
|
|||
if (nWindowsVersion >= 0x62) {
|
||||
GetRegistryKeyStr(REGKEY_HKLM, "Microsoft\\Windows NT\\CurrentVersion\\CurrentBuildNumber", build_number, sizeof(build_number));
|
||||
if (build_number[0] != 0) {
|
||||
nWindowsBuildNumber = atoi(build_number); // Keep a global copy
|
||||
safe_strcat(WindowsVersionStr, sizeof(WindowsVersionStr), " (Build ");
|
||||
safe_strcat(WindowsVersionStr, sizeof(WindowsVersionStr), build_number);
|
||||
safe_strcat(WindowsVersionStr, sizeof(WindowsVersionStr), ")");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue