Changeset 2316 for trunk/src


Ignore:
Timestamp:
Jan 4, 2000, 8:50:51 PM (26 years ago)
Author:
sandervl
Message:

SetWindowRgn memory leak + InsertMenu bug fixed

Location:
trunk/src/user32
Files:
3 edited

Legend:

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

    r2294 r2316  
    1 /* $Id: dc.cpp,v 1.32 2000-01-02 20:20:01 sandervl Exp $ */
     1/* $Id: dc.cpp,v 1.33 2000-01-04 19:50:50 sandervl Exp $ */
    22
    33/*
     
    14791479    }
    14801480    dprintf(("USER32:SetWindowRgn (%x,%x,%d)", hwnd, hRgn, bRedraw));
     1481    if(window->GetWindowRegion()) {
     1482        O32_DeleteObject(window->GetWindowRegion());
     1483    }
    14811484    window->SetWindowRegion(hRgn);
    14821485    if(bRedraw) {
  • trunk/src/user32/oslibmsgtranslate.cpp

    r2312 r2316  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.7 2000-01-03 21:37:16 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.8 2000-01-04 19:50:51 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    132132            winMsg->wParam  = packet->wParam;
    133133            winMsg->lParam  = packet->lParam;
    134             if(fMsgRemoved == MSG_REMOVE) 
    135                 free(packet); //free the shared memory here
     134            if(fMsgRemoved == MSG_REMOVE)
     135                free(packet); //free the shared memory here
    136136            break;
    137137        }
  • trunk/src/user32/winmenu.cpp

    r2106 r2316  
    1 /* $Id: winmenu.cpp,v 1.19 1999-12-18 14:31:15 sandervl Exp $ */
     1/* $Id: winmenu.cpp,v 1.20 2000-01-04 19:50:51 sandervl Exp $ */
    22
    33/*
     
    738738        flags |= MF_SEPARATOR;
    739739    }
     740    //SvL: RealPlayer calls InsertMenu with flag 0 & pos -1
     741    if((flags & (MF_BYCOMMAND|MF_BYPOSITION)) == 0 && (pos == 0xffffffff))
     742        flags |= MF_BYPOSITION;
     743
    740744    return O32_InsertMenu(hMenu, pos, flags, id, str);
    741745}
     
    10771081 *****************************************************************************/
    10781082
    1079 ODINFUNCTION4(BOOL, GetMenuItemRect,
    1080               HWND, hWnd,
    1081               HMENU, hMenu,
    1082               UINT, uItem,
    1083               LPRECT, lprcItem)
    1084 {
    1085     return OSLibGetMenuItemRect(hMenu, uItem, lprcItem);
     1083BOOL GetMenuItemRect(HWND hwnd, HMENU hMenu, UINT uItem, LPRECT lprcItem)
     1084{
     1085 BOOL rc;
     1086
     1087    rc = OSLibGetMenuItemRect(hMenu, uItem, lprcItem);
     1088    dprintf(("GetMenuItemRect %x %x %x (%d,%d)(%d,%d)", hwnd, hMenu, uItem, lprcItem->top, lprcItem->left, lprcItem->bottom, lprcItem->right));
     1089    return rc;
    10861090}
    10871091/*****************************************************************************
Note: See TracChangeset for help on using the changeset viewer.