VirtualBox

Changeset 96051 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Aug 5, 2022 10:30:49 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152850
Message:

IPRT/thread-win.cpp: Set the TLS entry to NULL earlier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/thread-win.cpp

    r95765 r96051  
    368368    int rc = rtThreadMain(pThread, dwThreadId, &pThread->szName[0]);
    369369
     370    TlsSetValue(g_dwSelfTLS, NULL); /* rtThreadMain already released the structure. */
     371
    370372    if (fUninitCom && g_pfnCoUninitialize)
    371373        g_pfnCoUninitialize();
    372374
    373     TlsSetValue(g_dwSelfTLS, NULL);
    374375    rtThreadNativeUninitComAndOle();
    375376#ifndef IPRT_NO_CRT
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