diff options
Diffstat (limited to 'runtime/src/pe_loader.cpp')
| -rw-r--r-- | runtime/src/pe_loader.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/src/pe_loader.cpp b/runtime/src/pe_loader.cpp index bbb04cd6c..d7ea38549 100644 --- a/runtime/src/pe_loader.cpp +++ b/runtime/src/pe_loader.cpp | |||
| @@ -767,9 +767,15 @@ void __cdecl on_host_thread_event(DWORD reason) { | |||
| 767 | 767 | ||
| 768 | // The Xbox builds of the MSVC runtime import the same CRT the desktop does, so the host's own copies are used. | 768 | // The Xbox builds of the MSVC runtime import the same CRT the desktop does, so the host's own copies are used. |
| 769 | bool prefer_host_copy(const std::string& dll) { | 769 | bool prefer_host_copy(const std::string& dll) { |
| 770 | // The second row is the Debug builds of the same DLLs. A Debug build of a stand-in image (tiny_game) links them, | ||
| 771 | // and without them here its C++ exceptions were not redirected below: a throw caught inside the image ended the | ||
| 772 | // run with 0xE06D7363 (run_tiny_game_eh in a Debug build). | ||
| 770 | static const char* names[] = {"vcruntime140.dll", "vcruntime140_1.dll", "msvcp140.dll", "msvcp140_1.dll", | 773 | static const char* names[] = {"vcruntime140.dll", "vcruntime140_1.dll", "msvcp140.dll", "msvcp140_1.dll", |
| 771 | "msvcp140_2.dll", "msvcp140_atomic_wait.dll", "msvcp140_codecvt_ids.dll", | 774 | "msvcp140_2.dll", "msvcp140_atomic_wait.dll", "msvcp140_codecvt_ids.dll", |
| 772 | "concrt140.dll", "vccorlib140.dll", "vcomp140.dll"}; | 775 | "concrt140.dll", "vccorlib140.dll", "vcomp140.dll", |
| 776 | "vcruntime140d.dll", "vcruntime140_1d.dll", "msvcp140d.dll", "msvcp140_1d.dll", | ||
| 777 | "msvcp140_2d.dll", "msvcp140d_atomic_wait.dll", "msvcp140d_codecvt_ids.dll", | ||
| 778 | "concrt140d.dll", "vccorlib140d.dll", "vcomp140d.dll"}; | ||
| 773 | for (auto* n : names) | 779 | for (auto* n : names) |
| 774 | if (dll == n) return true; | 780 | if (dll == n) return true; |
| 775 | return false; | 781 | return false; |