if (lpvReserved == NULL) { _pr_use_static_tls = FALSE; } else { _pr_use_static_tls = TRUE; }
BOOL WINAPI DllMain(    HINSTANCE hinstDLL,    DWORD fdwReason,    LPVOID lpvReserved){PRThread *me;    switch (fdwReason) {        case DLL_PROCESS_ATTACH:            /*             * If lpvReserved is NULL, we are dynamically loaded             * and therefore can't use static thread-local storage.             */            if (lpvReserved == NULL) {                _pr_use_static_tls = FALSE;            } else {                _pr_use_static_tls = TRUE;            }            break;        case DLL_THREAD_ATTACH:            break;        case DLL_THREAD_DETACH:            if (_pr_initialized) {                me = _MD_GET_ATTACHED_THREAD();                if ((me != NULL) && (me->flags & _PR_ATTACHED))                    _PRI_DetachThread();            }            break;        case DLL_PROCESS_DETACH:            break;    }    return TRUE;}