diff options
Diffstat (limited to 'runtime/shims/registry.cpp')
| -rw-r--r-- | runtime/shims/registry.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/shims/registry.cpp b/runtime/shims/registry.cpp index 6ec36e31c..f041df89f 100644 --- a/runtime/shims/registry.cpp +++ b/runtime/shims/registry.cpp | |||
| @@ -494,7 +494,8 @@ void* find(const std::string& dll_lower, const std::string& name) { | |||
| 494 | 494 | ||
| 495 | bool owns_dll(const std::string& dll_lower) { | 495 | bool owns_dll(const std::string& dll_lower) { |
| 496 | static const char* const host[] = {"kernel32.dll", "kernelbase.dll", "msvcrt.dll", "ucrtbase.dll", "ucrtbased.dll", | 496 | static const char* const host[] = {"kernel32.dll", "kernelbase.dll", "msvcrt.dll", "ucrtbase.dll", "ucrtbased.dll", |
| 497 | "vulkan-1.dll", "ntdll.dll", "user32.dll"}; | 497 | "vulkan-1.dll", "ntdll.dll", "user32.dll", "ws2_32.dll", |
| 498 | "wsock32.dll"}; | ||
| 498 | if (starts_with(dll_lower, "api-ms-") || starts_with(dll_lower, "ext-ms-")) return false; | 499 | if (starts_with(dll_lower, "api-ms-") || starts_with(dll_lower, "ext-ms-")) return false; |
| 499 | for (const char* h : host) | 500 | for (const char* h : host) |
| 500 | if (dll_lower == h) return false; | 501 | if (dll_lower == h) return false; |