Changeset 91401 in vbox for trunk/src/VBox
- Timestamp:
- Sep 27, 2021 2:01:54 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/UefiVariableStoreImpl.cpp
r91396 r91401 383 383 const com::Guid &aOwnerUuid, SignatureType_T enmSignatureType) 384 384 { 385 HRESULT hrc = S_OK;386 385 RTVFSFILE hVfsFileSigDb = NIL_RTVFSFILE; 387 386 388 int vrc = i_uefiVarStoreAddVar(pGuid, pszDb,387 HRESULT hrc = i_uefiVarStoreAddVar(pGuid, pszDb, 389 388 EFI_VAR_HEADER_ATTR_NON_VOLATILE 390 389 | EFI_VAR_HEADER_ATTR_BOOTSERVICE_ACCESS … … 392 391 | EFI_AUTH_VAR_HEADER_ATTR_TIME_BASED_AUTH_WRITE_ACCESS, 393 392 &hVfsFileSigDb); 394 if ( RT_SUCCESS(vrc))393 if (SUCCEEDED(hrc)) 395 394 { 396 395 RTEFISIGDB hEfiSigDb; 397 vrc = RTEfiSigDbCreate(&hEfiSigDb); 396 397 int vrc = RTEfiSigDbCreate(&hEfiSigDb); 398 398 if (RT_SUCCESS(vrc)) 399 399 { … … 422 422 RTVfsFileRelease(hVfsFileSigDb); 423 423 } 424 else425 hrc = setError(E_FAIL, tr("Opening signature database '%s' failed: %Rrc"), pszDb, vrc);426 424 427 425 return hrc;
Note:
See TracChangeset
for help on using the changeset viewer.