VirtualBox

Changeset 3531 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jul 10, 2007 2:50:40 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22755
Message:

ModuleInit/Term are optional. VMMR0Entry is mandatory (for VMMR0.r0).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r3529 r3531  
    12201220                    if (VBOX_SUCCESS(rc))
    12211221                    {
    1222                         rc = RTLdrGetSymbolEx(hLdrMod, &pIn->achImage[0], (uintptr_t)OpenOut.pvImageBase, "ModuleInit", &ModuleInit);
    1223                         if (VBOX_FAILURE(rc))
     1222                        int rc2 = RTLdrGetSymbolEx(hLdrMod, &pIn->achImage[0], (uintptr_t)OpenOut.pvImageBase, "ModuleInit", &ModuleInit);
     1223                        if (VBOX_FAILURE(rc2))
    12241224                            ModuleInit = 0;
    12251225
    1226                         rc = RTLdrGetSymbolEx(hLdrMod, &pIn->achImage[0], (uintptr_t)OpenOut.pvImageBase, "ModuleTerm", &ModuleTerm);
    1227                         if (VBOX_FAILURE(rc))
     1226                        rc2 = RTLdrGetSymbolEx(hLdrMod, &pIn->achImage[0], (uintptr_t)OpenOut.pvImageBase, "ModuleTerm", &ModuleTerm);
     1227                        if (VBOX_FAILURE(rc2))
    12281228                            ModuleTerm = 0;
    12291229                    }
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