Avoid rare deadlock inside SHCreateDirectoyExW.
Replace call to SHCreateDirectoyExW on the win32 platform with multiple calls to CreateDirectoryW to avoid deadlock within CoUninitialize which is called from SHCreateDirectoyExW. MSDN states that calling CoInitialize during DllMain is prohibited. SHCreateDirectoyExW internally calls CoInitialize, thus calling SHCreateDirectoyExW inside the DllMain is prohibited as well.
Loading
Please register or sign in to comment