mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-30 09:14:39 +02:00
Fix build error in MinGW
and fix a misuse of CopyFileEx function.
This commit is contained in:
parent
051b17ca44
commit
3bf17ec697
@ -11,7 +11,7 @@
|
|||||||
//TBSTYLE_EX_HIDECLIPPEDBUTTONS = 501
|
//TBSTYLE_EX_HIDECLIPPEDBUTTONS = 501
|
||||||
//#define _WIN32_IE 0x501
|
//#define _WIN32_IE 0x501
|
||||||
//Theme (uxtheme)
|
//Theme (uxtheme)
|
||||||
#define _WIN32_WINNT 0x0501
|
#define _WIN32_WINNT 0x0600
|
||||||
|
|
||||||
//#include <windows.h>
|
//#include <windows.h>
|
||||||
|
|
||||||
|
@ -1566,8 +1566,8 @@ bool Notepad_plus::fileSave(BufferID id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL keepGoing = TRUE;
|
BOOL doCancel = FALSE;
|
||||||
if (!::CopyFileEx(fn, fn_bak.c_str(), nullptr, nullptr, &keepGoing, COPY_FILE_NO_BUFFERING))
|
if (!::CopyFileEx(fn, fn_bak.c_str(), nullptr, nullptr, &doCancel, COPY_FILE_NO_BUFFERING))
|
||||||
{
|
{
|
||||||
int res = _nativeLangSpeaker.messageBox("FileBackupFailed",
|
int res = _nativeLangSpeaker.messageBox("FileBackupFailed",
|
||||||
_pPublicInterface->getHSelf(),
|
_pPublicInterface->getHSelf(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user