#include "WinMergeShell.h"
#include "RegKey.h"
#include "coretools.h"
+#include <sys/types.h>
+#include <sys/stat.h>
/// Flags for enabling and mode of extension
#define EXT_ENABLED 0x01
if (ext == _T("exe") || ext == _T("cmd") || ext == ("bat"))
{
// Check if file exists
- CFileStatus status;
- if (CFile::GetStatus(path, status))
+ struct _stati64 statBuffer;
+ int nRetVal = _tstati64(path, &statBuffer);
+ if (nRetVal > -1)
return TRUE;
}
return FALSE;
PATCH: [ 1373037 ] Fix filter dialog to correctly add new filters
Submitted by Perry
Src: FileFiltersDlg.cpp
+ PATCH: [ 1370183 ] ShellExtension: better way to check for WinMerge executable
+ ShellExtension: WinMergeShell.cpp
2005-12-04 Perry
PATCH: [ 1372974 ] Make local function "GuessEncoding_from_bytes" static