Changeset 1915 for trunk/dll/inis.c


Ignore:
Timestamp:
Nov 1, 2025, 7:27:49 PM (44 hours ago)
Author:
Gregg Young
Message:

Improve readability of insert_filename (use 0,1,2 instead of FALSE, TRUE,2 for loadit). Fix it so pszIDrive is only set from lastfilename if filename is NULL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/inis.c

    r1880 r1915  
    10171017          *filename = 0;
    10181018        strcat(filename, PCSZ_STARDOTINI);
    1019         if (insert_filename(hwnd, filename, TRUE, FALSE) && *filename)
     1019        if (insert_filename(hwnd, filename, 1, FALSE) && *filename)
    10201020          WinSetDlgItemText(hwnd, id, filename);
    10211021      }
     
    11211121          *filename = 0;
    11221122        strcat(filename, PCSZ_STARDOTINI);
    1123         if (insert_filename(hwnd, filename, TRUE, FALSE) && *filename)
     1123        if (insert_filename(hwnd, filename, 1, FALSE) && *filename)
    11241124          WinSetDlgItemText(hwnd, id, filename);
    11251125      }
     
    26532653        if (insert_filename(hwnd,
    26542654                            filename,
    2655                             TRUE,
     2655                            1,
    26562656                            TRUE) &&
    26572657            *filename &&
Note: See TracChangeset for help on using the changeset viewer.