mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 16:37:13 +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
|
||||
//
|
||||
// $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);
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// File_WIN32U.cpp
|
||||
//
|
||||
// $Id: //poco/svn/Foundation/src/File_WIN32U.cpp#3 $
|
||||
// $Id: //poco/1.3/Foundation/src/File_WIN32U.cpp#8 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Filesystem
|
||||
@ -347,7 +347,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user