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