Assume that a search path is constructed for non-static dependencies of a module in Windows 8.1. When the module is loaded, the search path flags are passed to the LoadLibrary function. However, when the LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR flag is set, the module search path is initialized to null. If the original module is loaded by using the LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR flag, this field is dereferenced when the search path is constructed. Therefore, the application crashes.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.