Skip to content

Fix for missing save prompt on SC_CLOSE #28

Description

@levicki

@davepl

NotFindMsg:

Fix could go something like this (unoptimized for size of course, feel free to trim):

   NotFindMsg:
        cmp     uMsg, WM_SYSCOMMAND
        jne     NotWMSysCommand
        mov     eax, wParam
        cmp     eax, IDM_SAVE
        je      DoSaveFile
        and     eax, -16
        cmp     eax, SC_CLOSE
        jne     NotWMSysCommand
        mov     uMsg, WM_COMMAND
        mov     wParam, IDM_FILE_EXIT
        jmp     NotWMSysCommand
DoSaveFile:
        call    SaveFile
        xor     eax, eax
        ret

It would fix issues #15 and #24.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions