mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-01 07:18:29 -04:00
[togo] add a notice about WppRecorder.sys BSOD with 1809 ISOs
* Also improve detection of build number
This commit is contained in:
parent
081d7b3a0b
commit
326ae54f45
7 changed files with 47 additions and 27 deletions
11
src/stdfn.c
11
src/stdfn.c
|
@ -352,14 +352,11 @@ void GetWindowsVersion(void)
|
|||
safe_sprintf(vptr, vlen, "%s %s", w, w64);
|
||||
|
||||
// Add the build number for Windows 8.0 and later
|
||||
nWindowsBuildNumber = vi.dwBuildNumber;
|
||||
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
|
||||
static_strcat(WindowsVersionStr, " (Build ");
|
||||
static_strcat(WindowsVersionStr, build_number);
|
||||
static_strcat(WindowsVersionStr, ")");
|
||||
}
|
||||
vptr = &WindowsVersionStr[safe_strlen(WindowsVersionStr)];
|
||||
vlen = sizeof(WindowsVersionStr) - safe_strlen(WindowsVersionStr) - 1;
|
||||
safe_sprintf(vptr, vlen, " (Build %d)", nWindowsBuildNumber);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue