REDIVIVUS

Proposals / #1595

Mac FindMostEmptyVolume: void __cdecl (void)

checked · by KierTaylor · submitted 2026-11-08

It reads no register or stack args (only locals at [EBP-0x8a..-0x90]). It finds the temporary-items folder (FindFolder) and walks the mounted volumes with PBHGetVInfo, keeping the one with the most free space. It stores that volume ref in a global word and sets the "chosen" flag byte (0x0002a824/0x0002a82b). Plain RET; EAX holds only the last volume word. Callers: GetTempPathFreeSpace 0x0002a6be and GetTempPath.

Changes 1, applied together

  1. Set prototype mac 0x0002a708

    signatureundefined FindMostEmptyVolume(void)→void FindMostEmptyVolume(void)
    conventionunknown→__cdecl