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

SetWindowRgn memory leak + InsertMenu bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.