Changeset 1454 for trunk/dll/inis.c


Ignore:
Timestamp:
Sep 13, 2009, 1:27:47 AM (16 years ago)
Author:
Gregg Young
Message:

Add submenu to view ini that includes fm3.ini, the user ini and the system ini as open choices (ticket 366)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/inis.c

    r1402 r1454  
    3535  08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used)
    3636  14 Mar 09 GKY Additional strings move to PCSZs
     37  12 Sep 09 GKY Add FM3.INI User ini and system ini to submenu for view ini
    3738
    3839***********************************************************************/
     
    15121513  FCF_TITLEBAR | FCF_MINMAX | FCF_MENU | FCF_ACCELTABLE | FCF_NOBYTEALIGN;
    15131514
    1514 HWND StartIniEditor(HWND hwnd, CHAR * fname, INT flags)
     1515HWND StartIniEditor(HWND hwnd, CHAR *fname, INT flags)
    15151516{
    15161517  /*
     
    20912092    else {
    20922093      if (mp1) {
    2093         strcpy(inidata->ininame, (CHAR *)mp1);
    2094         inidata->hini = PrfOpenProfile(WinQueryAnchorBlock(hwnd),
    2095                                        inidata->ininame);
    2096         free(mp1);
     2094        if (!strcmp((CHAR *)mp1, "SYS")) {
     2095          inidata->hini = HINI_SYSTEMPROFILE;
     2096          free(mp1);
     2097        }
     2098        else
     2099        {
     2100          strcpy(inidata->ininame, (CHAR *)mp1);
     2101          inidata->hini = PrfOpenProfile(WinQueryAnchorBlock(hwnd),
     2102                                         inidata->ininame);
     2103          free(mp1);
     2104        }
    20972105      }
    20982106      else
Note: See TracChangeset for help on using the changeset viewer.