Index: base/threading/platform_thread_win.cc |
diff --git a/base/threading/platform_thread_win.cc b/base/threading/platform_thread_win.cc |
index 6030992d68078a5baa98f93fe396c294eb2b9423..80ce760dde29b15751859a14b6cb20e8d4e6ea67 100644 |
--- a/base/threading/platform_thread_win.cc |
+++ b/base/threading/platform_thread_win.cc |
@@ -13,6 +13,7 @@ |
#include "base/threading/thread_restrictions.h" |
#include "base/tracked_objects.h" |
#include "base/win/scoped_handle.h" |
+#include "base/win/windows_version.h" |
namespace base { |
@@ -99,8 +100,10 @@ |
PlatformThreadHandle* out_thread_handle, |
ThreadPriority priority) { |
unsigned int flags = 0; |
- if (stack_size > 0) { |
+ if (stack_size > 0 && base::win::GetVersion() >= base::win::VERSION_XP) { |
flags = STACK_SIZE_PARAM_IS_A_RESERVATION; |
+ } else { |
+ stack_size = 0; |
} |
ThreadParams* params = new ThreadParams; |