diff options
Diffstat (limited to 'src/engine/registration.cpp')
| -rw-r--r-- | src/engine/registration.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/registration.cpp b/src/engine/registration.cpp index 9e27b177..7435f292 100644 --- a/src/engine/registration.cpp +++ b/src/engine/registration.cpp | |||
| @@ -463,14 +463,15 @@ LExit: | |||
| 463 | } | 463 | } |
| 464 | 464 | ||
| 465 | extern "C" HRESULT RegistrationDetectInstalled( | 465 | extern "C" HRESULT RegistrationDetectInstalled( |
| 466 | __in BURN_REGISTRATION* pRegistration, | 466 | __in BURN_REGISTRATION* pRegistration |
| 467 | __out BOOL* pfInstalled | ||
| 468 | ) | 467 | ) |
| 469 | { | 468 | { |
| 470 | HRESULT hr = S_OK; | 469 | HRESULT hr = S_OK; |
| 471 | HKEY hkRegistration = NULL; | 470 | HKEY hkRegistration = NULL; |
| 472 | DWORD dwInstalled = 0; | 471 | DWORD dwInstalled = 0; |
| 473 | 472 | ||
| 473 | pRegistration->fCached = FileExistsEx(pRegistration->sczCacheExecutablePath, NULL); | ||
| 474 | |||
| 474 | // open registration key | 475 | // open registration key |
| 475 | hr = RegOpen(pRegistration->hkRoot, pRegistration->sczRegistrationKey, KEY_QUERY_VALUE, &hkRegistration); | 476 | hr = RegOpen(pRegistration->hkRoot, pRegistration->sczRegistrationKey, KEY_QUERY_VALUE, &hkRegistration); |
| 476 | if (SUCCEEDED(hr)) | 477 | if (SUCCEEDED(hr)) |
| @@ -484,7 +485,7 @@ extern "C" HRESULT RegistrationDetectInstalled( | |||
| 484 | hr = S_OK; | 485 | hr = S_OK; |
| 485 | } | 486 | } |
| 486 | 487 | ||
| 487 | *pfInstalled = (1 == dwInstalled); | 488 | pRegistration->fInstalled = (1 == dwInstalled); |
| 488 | 489 | ||
| 489 | ReleaseRegKey(hkRegistration); | 490 | ReleaseRegKey(hkRegistration); |
| 490 | return hr; | 491 | return hr; |
