| Index: runtime/bin/platform_win.cc
|
| diff --git a/runtime/bin/platform_win.cc b/runtime/bin/platform_win.cc
|
| index 9830db2c9ebc863856023aca91260b7105a7d650..dd0812fd59005145a688b26e4544bf7d6d45d41c 100644
|
| --- a/runtime/bin/platform_win.cc
|
| +++ b/runtime/bin/platform_win.cc
|
| @@ -105,6 +105,12 @@ char* Platform::ResolveExecutablePath() {
|
| return canon_path;
|
| }
|
|
|
| +void Platform::Exit(int exit_code) {
|
| + // On Windows we use ExitProcess so that threads can't clobber the exit_code.
|
| + // See: https://code.google.com/p/nativeclient/issues/detail?id=2870
|
| + ::ExitProcess(exit_code);
|
| +}
|
| +
|
| } // namespace bin
|
| } // namespace dart
|
|
|
|
|