• src/uifc/filepick.c

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Mar 19 14:38:34 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/5069b685597827cf411140e9
    Modified Files:
    src/uifc/filepick.c
    Log Message:
    Fix blank drive list in file picker on Windows (ticket 227)

    getdirname() on drive root paths like "A:\" returns "" because it
    looks past the last backslash. At the drive selection level (\\?\),
    use the full path directly so drives display as "A:\", "C:\", etc.

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Apr 23 23:45:46 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/f56fe045cde82e59863347c1
    Modified Files:
    src/uifc/filepick.c
    Log Message:
    uifc: fix MSVC build of filepick.c

    On Windows globi is a function-like macro that forwards to glob, so
    taking its address (globfn = globi) left the identifier undeclared.
    Replace the function-pointer dance with a small fp_glob_call() wrapper
    that invokes glob or globi at the call site, expanding the macro
    normally.

    Also swap strcasecmp for stricmp in cmp_entry_ci() to match the rest
    of uifc (genwrap.h aliases stricmp to strcasecmp on Unix; MSVC has
    stricmp natively).

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)