VirtualBox

Changeset 60271 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 31, 2016 10:03:02 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106312
Message:

Main/initterm: HRESULT / IPRT status code mixup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/initterm.cpp

    r59424 r60271  
    265265            if (RT_SUCCESS(vrc))
    266266#  ifndef VBOX_IN_32_ON_64_MAIN_API
    267                 rc = RTPathAppend(szPath, sizeof(szPath),
    268                                      RT_MAKE_U64(((PKUSER_SHARED_DATA)MM_SHARED_USER_DATA_VA)->NtMinorVersion,
    269                                                  ((PKUSER_SHARED_DATA)MM_SHARED_USER_DATA_VA)->NtMajorVersion)
    270                                   >= RT_MAKE_U64(1/*Lo*/,6/*Hi*/)
    271                                   ? "VBoxProxyStub.dll" : "VBoxProxyStubLegacy.dll");
     267                vrc = RTPathAppend(szPath, sizeof(szPath),
     268                                      RT_MAKE_U64(((PKUSER_SHARED_DATA)MM_SHARED_USER_DATA_VA)->NtMinorVersion,
     269                                                  ((PKUSER_SHARED_DATA)MM_SHARED_USER_DATA_VA)->NtMajorVersion)
     270                                   >= RT_MAKE_U64(1/*Lo*/,6/*Hi*/)
     271                                   ? "VBoxProxyStub.dll" : "VBoxProxyStubLegacy.dll");
    272272#  else
    273                 rc = RTPathAppend(szPath, sizeof(szPath), "x86\\VBoxProxyStub-x86.dll");
     273                vrc = RTPathAppend(szPath, sizeof(szPath), "x86\\VBoxProxyStub-x86.dll");
    274274#  endif
    275275            if (RT_SUCCESS(vrc))
     
    284284                        DECLCALLBACKMEMBER(uint32_t, pfnRegUpdate)(void);
    285285                    } u;
    286                     rc = RTLdrGetSymbol(hMod, "VbpsUpdateRegistrations", &u.pv);
    287                     if (RT_SUCCESS(rc))
     286                    vrc = RTLdrGetSymbol(hMod, "VbpsUpdateRegistrations", &u.pv);
     287                    if (RT_SUCCESS(vrc))
    288288                        u.pfnRegUpdate();
    289289                    /* Just keep it loaded. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette