[vm] Fix use of GetCurrentThreadStackLimits on Windows IA32.

TEST=flutter
Change-Id: Iaba4cd9c2b6f2555c02e62efb2a0913aca89a63a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/467141
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
diff --git a/runtime/vm/os_thread_win.cc b/runtime/vm/os_thread_win.cc
index 446838d..1045df85 100644
--- a/runtime/vm/os_thread_win.cc
+++ b/runtime/vm/os_thread_win.cc
@@ -172,7 +172,9 @@
 }
 
 bool OSThread::GetCurrentStackBounds(uword* lower, uword* upper) {
-  ::GetCurrentThreadStackLimits(lower, upper);
+  // PULONG and uword are sometimes different fundamental types.
+  ::GetCurrentThreadStackLimits(reinterpret_cast<PULONG_PTR>(lower),
+                                reinterpret_cast<PULONG_PTR>(upper));
   return true;
 }