VirtualBox

Changeset 70267 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 21, 2017 11:58:59 AM (7 years ago)
Author:
vboxsync
Message:

VBoxService/win: Don't unload modules we dynamically resolve APIs from. Duh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService-win.cpp

    r70214 r70267  
    113113
    114114    /* From ADVAPI32.DLL: */
    115     int rc = RTLdrLoadSystem("advapi32.dll", false /*fNoUnload*/, &hLdrMod);
     115    int rc = RTLdrLoadSystem("advapi32.dll", true /*fNoUnload*/, &hLdrMod);
    116116    AssertRC(rc);
    117117    if (RT_SUCCESS(rc))
     
    127127
    128128    /* From KERNEL32.DLL: */
    129     rc = RTLdrLoadSystem("kernel32.dll", false /*fNoUnload*/, &hLdrMod);
     129    rc = RTLdrLoadSystem("kernel32.dll", true /*fNoUnload*/, &hLdrMod);
    130130    AssertRC(rc);
    131131    if (RT_SUCCESS(rc))
     
    140140
    141141    /* From NTDLL.DLL: */
    142     rc = RTLdrLoadSystem("ntdll.dll", false /*fNoUnload*/, &hLdrMod);
     142    rc = RTLdrLoadSystem("ntdll.dll", true /*fNoUnload*/, &hLdrMod);
    143143    AssertRC(rc);
    144144    if (RT_SUCCESS(rc))
     
    149149
    150150    /* From IPHLPAPI.DLL: */
    151     rc = RTLdrLoadSystem("iphlpapi.dll", false /*fNoUnload*/, &hLdrMod);
     151    rc = RTLdrLoadSystem("iphlpapi.dll", true /*fNoUnload*/, &hLdrMod);
    152152    if (RT_SUCCESS(rc))
    153153    {
     
    157157
    158158    /* From WS2_32.DLL: */
    159     rc = RTLdrLoadSystem("ws2_32.dll", false /*fNoUnload*/, &hLdrMod);
     159    rc = RTLdrLoadSystem("ws2_32.dll", true /*fNoUnload*/, &hLdrMod);
    160160    if (RT_SUCCESS(rc))
    161161    {
Note: See TracChangeset for help on using the changeset viewer.

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