Index: reactos/win32ss/user/ntuser/caret.c =================================================================== --- reactos/win32ss/user/ntuser/caret.c (revision 74124) +++ reactos/win32ss/user/ntuser/caret.c (working copy) @@ -21,6 +21,7 @@ { HDC hdc, hdcMem; HBITMAP hbmOld; + RECT rcClient; BOOL bDone = FALSE; if (pWnd == NULL) @@ -29,7 +30,7 @@ return; } - hdc = UserGetDCEx(pWnd, 0, DCX_USESTYLE | DCX_WINDOW); + hdc = UserGetDCEx(pWnd, NULL, DCX_USESTYLE); if (!hdc) { ERR("GetDC failed\n"); @@ -41,6 +42,13 @@ NtGdiSaveDC(hdc); } + IntGetClientRect(pWnd, &rcClient); + NtGdiIntersectClipRect(hdc, + rcClient.left, + rcClient.top, + rcClient.right, + rcClient.bottom); + if (CaretInfo->Bitmap) { if (!GreGetBitmapDimension(CaretInfo->Bitmap, &CaretInfo->Size))