fix: correct FileSave() nested call bug in IDM_FILE_SAVE

Removes erroneous nested FileSave() call that returned bool and was
passed as FileSaveFlags (mask type). Now correctly uses ternary.

Before: FileSave((cond) ? FileSave(FSF_SaveAlways) : FSF_None)
After:  FileSave((cond) ? FSF_SaveAlways : FSF_None)

Fixes: #5445
This commit is contained in:
Derick Payne 2026-01-18 04:17:59 +02:00
parent 58e13e778e
commit 658fb2f19c

View File

@ -4785,7 +4785,7 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
case IDM_FILE_SAVE: {
FileSave((FileWatching.FileWatchingMode <= FWM_DONT_CARE) ? FileSave(FSF_SaveAlways) : FSF_None);
FileSave((FileWatching.FileWatchingMode <= FWM_DONT_CARE) ? FSF_SaveAlways : FSF_None);
} break;