Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/comctl32/trackbar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/comctl32/trackbar.c b/dlls/comctl32/trackbar.c index 7cb73ca..fa63453 100644 --- a/dlls/comctl32/trackbar.c +++ b/dlls/comctl32/trackbar.c @@ -1923,7 +1923,9 @@ TRACKBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return infoPtr->uThumbLen;
case TBM_GETTHUMBRECT: - return CopyRect((LPRECT)lParam, &infoPtr->rcThumb); + if (!lParam) return FALSE; + *(RECT*)lParam = infoPtr->rcThumb; + return TRUE;
case TBM_GETTIC: return TRACKBAR_GetTic (infoPtr, (INT)wParam);