VirtualBox

Changeset 3361 in kBuild for trunk/src/kWorker/kWorkerTlsXxxK.c


Ignore:
Timestamp:
Jun 8, 2020 7:27:14 PM (4 years ago)
Author:
bird
Message:

kWorker: Adjustments for VC++ 14.2. Fixed bug in GetFileAttributesExW/A where we'd forget to set the return value on success. Reduced the size of the Tls DLLs, but having to add more as the re-load-same-dll hack doesn't work anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kWorker/kWorkerTlsXxxK.c

    r3042 r3361  
    5858 * Initialization data.
    5959 */
    60 static char const g_abDummy[TLS_SIZE] = {0x42};
     60//static char const g_abDummy[TLS_SIZE] = {0x42};
     61static char g_abDummy[TLS_SIZE] = {0};
    6162
    6263/**
     
    8889    if (dwReason == DLL_PROCESS_ATTACH)
    8990    {
    90         HMODULE hModExe = (HMODULE)(ULONG_PTR)KWORKER_BASE;
     91        //HMODULE hModExe = (HMODULE)(ULONG_PTR)KWORKER_BASE;
     92        HMODULE hModExe = GetModuleHandleW(NULL);
    9193        KWLDRTLSALLOCATIONHOOK *pfnHook = (KWLDRTLSALLOCATIONHOOK *)GetProcAddress(hModExe, "kwLdrTlsAllocationHook");
    9294        if (pfnHook)
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