Ignore:
Timestamp:
Nov 25, 2000, 2:53:54 PM (25 years ago)
Author:
sandervl
Message:

ReleaseCapture fix (endless loop in MultiEdit)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/winmouse.cpp

    r3499 r4697  
    1 /* $Id: winmouse.cpp,v 1.10 2000-05-05 18:23:07 sandervl Exp $ */
     1/* $Id: winmouse.cpp,v 1.11 2000-11-25 13:53:54 sandervl Exp $ */
    22/*
    33 * Mouse handler for DINPUT
     
    102102  y = (((long)y << 16) + ScreenHeight-1) / ScreenHeight;
    103103
    104   mouseHandler(dwFlags, x, y, 0, (DWORD)&mouseEvent);
    105   return TRUE;
     104  return mouseHandler(dwFlags, x, y, 0, (DWORD)&mouseEvent);
    106105}
    107106//******************************************************************************
     
    142141{
    143142 HWND hwndPrev;
     143 BOOL ret;
    144144
    145145    dprintf(("USER32:  ReleaseCapture"));
    146146    hwndPrev = GetCapture();
     147    ret = OSLibWinSetCapture(0);
    147148    if(hwndPrev) {
    148149        SendMessageA(hwndPrev, WM_CAPTURECHANGED, 0L, 0L);
    149150    }
    150     return OSLibWinSetCapture(0);
     151    return ret;
    151152}
    152153//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.