mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +01:00
fixed SF# 1948361: a little bug for win32
This commit is contained in:
parent
7666d47304
commit
cf1d1fa952
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// File_WIN32.cpp
|
// File_WIN32.cpp
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/src/File_WIN32.cpp#3 $
|
// $Id: //poco/1.3/Foundation/src/File_WIN32.cpp#8 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Filesystem
|
// Package: Filesystem
|
||||||
@ -339,7 +339,7 @@ bool FileImpl::createFileImpl()
|
|||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (GetLastError() == ERROR_ALREADY_EXISTS)
|
else if (GetLastError() == ERROR_FILE_EXISTS)
|
||||||
return false;
|
return false;
|
||||||
else
|
else
|
||||||
handleLastErrorImpl(_path);
|
handleLastErrorImpl(_path);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// File_WIN32U.cpp
|
// File_WIN32U.cpp
|
||||||
//
|
//
|
||||||
// $Id: //poco/svn/Foundation/src/File_WIN32U.cpp#3 $
|
// $Id: //poco/1.3/Foundation/src/File_WIN32U.cpp#8 $
|
||||||
//
|
//
|
||||||
// Library: Foundation
|
// Library: Foundation
|
||||||
// Package: Filesystem
|
// Package: Filesystem
|
||||||
@ -347,7 +347,7 @@ bool FileImpl::createFileImpl()
|
|||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (GetLastError() == ERROR_ALREADY_EXISTS)
|
else if (GetLastError() == ERROR_FILE_EXISTS)
|
||||||
return false;
|
return false;
|
||||||
else
|
else
|
||||||
handleLastErrorImpl(_path);
|
handleLastErrorImpl(_path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user