fixed SF# 1948361: a little bug for win32

This commit is contained in:
Guenter Obiltschnig 2008-09-17 17:45:12 +00:00
parent 7666d47304
commit cf1d1fa952
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);