mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-28 21:02:59 +08:00
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:
parent
58e13e778e
commit
658fb2f19c
@ -4785,7 +4785,7 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
|
|||||||
|
|
||||||
|
|
||||||
case IDM_FILE_SAVE: {
|
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;
|
} break;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user