This commit is contained in:
Adam Demasi 2024-12-11 23:54:58 +10:30
parent 8d1c727da6
commit 9494e9b8c1
No known key found for this signature in database
GPG key ID: 5D3B26B3D58C7D91

View file

@ -454,9 +454,10 @@ STDMETHODIMP CLegacyUpdateCtrl::ViewWindowsUpdateLog(void) {
STDMETHODIMP CLegacyUpdateCtrl::OpenWindowsUpdateSettings(void) {
DoIsPermittedCheck();
hr = GetInstallPath(&path);
LPWSTR path;
HRESULT hr = GetInstallPath(&path);
if (!SUCCEEDED(hr)) {
goto end;
return hr;
}
PathAppend(path, L"LegacyUpdate.exe");