Skip to content

Possible wrong argument to FileSave() #5445

@lhmouse

Description

@lhmouse

@RaiKoHoff

This doesn't seem correct?

Notepad3/src/Notepad3.c

Lines 4787 to 4789 in 8061d2e

case IDM_FILE_SAVE: {
FileSave((FileWatching.FileWatchingMode <= FWM_DONT_CARE) ? FileSave(FSF_SaveAlways) : FSF_None);
} break;

The nested FileSave() returns a bool which is passed as FileSaveFlags (a mask type) to the first FileSave(). I think this should be just

FileSave((FileWatching.FileWatchingMode <= FWM_DONT_CARE) ? FSF_SaveAlways : FSF_None); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions