regedit: Properly handle negative coordinates for mouse events.

This commit is contained in:
Alexandre Julliard 2006-10-25 17:42:57 +02:00
parent 4a464ef03a
commit 5b875279d1

View file

@ -245,7 +245,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
break;
case WM_LBUTTONDOWN: {
RECT rt;
int x = LOWORD(lParam);
int x = (short)LOWORD(lParam);
GetClientRect(hWnd, &rt);
if (x>=pChildWnd->nSplitPos-SPLIT_WIDTH/2 && x<pChildWnd->nSplitPos+SPLIT_WIDTH/2+1) {
last_split = pChildWnd->nSplitPos;