Ignore:
Timestamp:
Nov 5, 1999, 1:54:11 PM (26 years ago)
Author:
sandervl
Message:

InsertMenu & msg translation fixes

File:
1 edited

Legend:

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

    r1573 r1612  
    1 /* $Id: winmenu.cpp,v 1.13 1999-11-03 18:16:19 phaller Exp $ */
     1/* $Id: winmenu.cpp,v 1.14 1999-11-05 12:54:11 sandervl Exp $ */
    22
    33/*
     
    725725              LPCSTR, str)
    726726{
    727     dprintf(("USER32: InsertMenuA %x %d %x %d %s", hMenu, pos, flags, id, str));
    728     if(hMenu == 0)
    729     {
    730         SetLastError(ERROR_INVALID_PARAMETER);
    731         return 0;
    732     }
    733 
    734     if(!str || *str == NULL) {
     727    if(IS_STRING_ITEM(flags) && HIWORD(str)) {
     728         dprintf(("USER32: InsertMenuA %x %d %x %d %s", hMenu, pos, flags, id, str));
     729    }
     730    else dprintf(("USER32: InsertMenuA %x %d %x %d %x", hMenu, pos, flags, id, str));
     731
     732    if(hMenu == 0)
     733    {
     734        SetLastError(ERROR_INVALID_PARAMETER);
     735        return 0;
     736    }
     737
     738    if(IS_STRING_ITEM(flags) && (!str || *str == NULL)) {
    735739        flags |= MF_SEPARATOR;
    736740    }
Note: See TracChangeset for help on using the changeset viewer.