]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Added wxAutoNSAutoreleasePool to DoGetBestSize method
[wxWidgets.git] / src / msw / window.cpp
index abdcc7dac160cf78ba010f5a96d22b91d637bbcf..01bca8a3f5c25e687001710234f1ee2d2e58e3ff 100644 (file)
@@ -749,6 +749,7 @@ inline int GetScrollPosition(HWND hWnd, int wOrient)
     return ::GetScrollPosWX(hWnd, wOrient);
 #else
     SCROLLINFO scrollInfo;
+    scrollInfo.cbSize = sizeof(SCROLLINFO);
     scrollInfo.fMask = SIF_POS;
     if ( !::GetScrollInfo(hWnd,
                                   wOrient,