Changeset 108069 in vbox
- Timestamp:
- Feb 5, 2025 11:43:53 AM (2 weeks ago)
- svn:sync-xref-src-repo-rev:
- 167349
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp
r108038 r108069 1061 1061 DWORD dwVal = 0; 1062 1062 DWORD cbVal = sizeof(dwVal); 1063 DWORD dwValueType = REG_DWORD; /** @todo r=bird: output only parameter, optional, so pointless. */ 1064 lrc = RegQueryValueExW(hKeyVS, L"Installed", NULL, &dwValueType, (LPBYTE)&dwVal, &cbVal); 1063 lrc = RegQueryValueExW(hKeyVS, L"Installed", NULL /* lpReserved */, NULL /* lpType */, (LPBYTE)&dwVal, &cbVal); 1065 1064 if (lrc == ERROR_SUCCESS) 1066 1065 { 1067 1066 if (dwVal >= 1) 1068 1067 { 1069 DWORD dwMaj = 0; /** @todo r=bird: It's purdent to initialize values if you don't bother to check the type and size! */1070 lrc = RegQueryValueExW(hKeyVS, L"Major", NULL , &dwValueType, (LPBYTE)&dwMaj, &cbVal);1068 DWORD dwMaj; 1069 lrc = RegQueryValueExW(hKeyVS, L"Major", NULL /* lpReserved */, NULL /* lpType */, (LPBYTE)&dwMaj, &cbVal); 1071 1070 if (lrc == ERROR_SUCCESS) 1072 1071 { … … 1074 1073 1075 1074 DWORD dwMin = 0; 1076 lrc = RegQueryValueExW(hKeyVS, L"Minor", NULL , &dwValueType, (LPBYTE)&dwMin, &cbVal);1075 lrc = RegQueryValueExW(hKeyVS, L"Minor", NULL /* lpReserved */, NULL /* lpType */, (LPBYTE)&dwMin, &cbVal); 1077 1076 if (lrc == ERROR_SUCCESS) 1078 1077 { … … 1130 1129 DWORD dwVal = 0; 1131 1130 DWORD cbVal = sizeof(dwVal); 1132 DWORD dwValueType = REG_DWORD; /** @todo r=bird: Again, the type is an optional output parameter. pointless to init or pass it unless you check. */ 1133 lrc = RegQueryValueExW(hKeyCurVer, L"CurrentMajorVersionNumber", NULL, &dwValueType, (LPBYTE)&dwVal, &cbVal); 1131 lrc = RegQueryValueExW(hKeyCurVer, L"CurrentMajorVersionNumber", NULL /* lpReserved */, NULL /* lpType */, (LPBYTE)&dwVal, &cbVal); 1134 1132 if (lrc == ERROR_SUCCESS) 1135 1133 {
Note:
See TracChangeset
for help on using the changeset viewer.