Fix build error in MinGW

and fix a misuse of CopyFileEx function.
pull/9432/head
Don HO 4 years ago
parent 051b17ca44
commit 3bf17ec697
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

@ -11,7 +11,7 @@
//TBSTYLE_EX_HIDECLIPPEDBUTTONS = 501
//#define _WIN32_IE 0x501
//Theme (uxtheme)
#define _WIN32_WINNT 0x0501
#define _WIN32_WINNT 0x0600
//#include <windows.h>

@ -1566,8 +1566,8 @@ bool Notepad_plus::fileSave(BufferID id)
}
}
BOOL keepGoing = TRUE;
if (!::CopyFileEx(fn, fn_bak.c_str(), nullptr, nullptr, &keepGoing, COPY_FILE_NO_BUFFERING))
BOOL doCancel = FALSE;
if (!::CopyFileEx(fn, fn_bak.c_str(), nullptr, nullptr, &doCancel, COPY_FILE_NO_BUFFERING))
{
int res = _nativeLangSpeaker.messageBox("FileBackupFailed",
_pPublicInterface->getHSelf(),

Loading…
Cancel
Save