diff options
| author | andretuta <andreviniciusmerlia@gmail.com> | 2026-11-24 00:53:14 -0300 |
|---|---|---|
| committer | andretuta <andreviniciusmerlia@gmail.com> | 2026-11-24 00:53:14 -0300 |
| commit | 9b59db02f974edc453bab4c2bf69e52f87447ebf (patch) | |
| tree | 20d377a3937b26b3a8a3d4a2c27dd4effc369c3b /runtime/shims/registry.cpp | |
| parent | f9e7e3e1bfa718eb4d8ca84fd1dbe617038d48d7 (diff) | |
ws2_offline: add offline loopback-only Winsock2 (ws2_32.dll) shim (RT-WS2-OFFLINE)
Diffstat (limited to 'runtime/shims/registry.cpp')
| -rw-r--r-- | runtime/shims/registry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/shims/registry.cpp b/runtime/shims/registry.cpp index 9b3ea0437..4e4aca52d 100644 --- a/runtime/shims/registry.cpp +++ b/runtime/shims/registry.cpp | |||
| @@ -491,7 +491,7 @@ void* find(const std::string& dll_lower, const std::string& name) { | |||
| 491 | 491 | ||
| 492 | bool owns_dll(const std::string& dll_lower) { | 492 | bool owns_dll(const std::string& dll_lower) { |
| 493 | static const char* const host[] = {"kernel32.dll", "kernelbase.dll", "msvcrt.dll", "ucrtbase.dll", "ucrtbased.dll", | 493 | static const char* const host[] = {"kernel32.dll", "kernelbase.dll", "msvcrt.dll", "ucrtbase.dll", "ucrtbased.dll", |
| 494 | "vulkan-1.dll", "ntdll.dll", "user32.dll"}; | 494 | "vulkan-1.dll", "ntdll.dll", "user32.dll", "ws2_32.dll"}; |
| 495 | if (starts_with(dll_lower, "api-ms-") || starts_with(dll_lower, "ext-ms-")) return false; | 495 | if (starts_with(dll_lower, "api-ms-") || starts_with(dll_lower, "ext-ms-")) return false; |
| 496 | for (const char* h : host) | 496 | for (const char* h : host) |
| 497 | if (dll_lower == h) return false; | 497 | if (dll_lower == h) return false; |