Don't reset LastError on success

svn path=/trunk/; revision=9960
This commit is contained in:
Gé van Geldorp 2004-07-01 22:36:16 +00:00
parent 1c2af8076a
commit db3e54f680

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.35 2004/01/23 21:16:03 ekohl Exp $
/* $Id: create.c,v 1.36 2004/07/01 22:36:16 gvg Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -286,10 +286,6 @@ HANDLE STDCALL CreateFileW (LPCWSTR lpFileName,
{
SetLastError(ERROR_ALREADY_EXISTS);
}
else
{
SetLastError(0);
}
return FileHandle;
}