Changeset 1704


Ignore:
Timestamp:
Feb 8, 2014, 4:31:01 AM (11 years ago)
Author:
Gregg Young
Message:

Fix trap caused by failure to update command list to use ini stored commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/dll/mainwnd.c

    r1701 r1704  
    62526252
    62536253      LINKCMDS *info;
     6254      CHAR s[120];
    62546255
    62556256      info = cmdhead;
    62566257      while (info) {
     6258        sprintf(s, "%s    {%i}", info->title, info->ID);
    62576259        WinSendMsg(hwndCmdlist, LM_INSERTITEM,
    6258                    MPFROM2SHORT(LIT_END, 0), MPFROMP(info->title));
     6260                   MPFROM2SHORT(LIT_END, 0), MPFROMP(s));
    62596261        info = info->next;
    62606262      }
     
    65846586
    65856587                WinSendMsg(hwndCmdlist, LM_QUERYITEMTEXT,
    6586                            MPFROM2SHORT(sSelect, CCHMAXPATH), MPFROMP(s));
     6588                           MPFROM2SHORT(sSelect, CCHMAXPATH), MPFROMP(s));
    65876589                p = strrchr(s, '}');
    65886590                p = 0;
     
    65916593                WinPostMsg(hwnd,
    65926594                           WM_COMMAND,
    6593                            MPFROM2SHORT(atol(p), 0), //IDM_COMMANDSTART + sSelect, 0),
     6595                           MPFROM2SHORT(atol(p), 0), //fixme GKY this traps in atol the {} probably don't exist
     6596                           //IDM_COMMANDSTART + sSelect, 0),
    65946597                           MPVOID);
    65956598              }
Note: See TracChangeset for help on using the changeset viewer.