mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Don't abandon file creation if hTemplateFile is INVALID_HANDLE_VALUE
svn path=/trunk/; revision=11058
This commit is contained in:
parent
e1741d6626
commit
200da8e7da
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: create.c,v 1.38 2004/07/22 02:32:40 navaraf Exp $
|
/* $Id: create.c,v 1.39 2004/09/25 21:44:02 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -91,10 +91,10 @@ HANDLE STDCALL CreateFileW (LPCWSTR lpFileName,
|
||||||
|
|
||||||
DPRINT("CreateFileW(lpFileName %S)\n",lpFileName);
|
DPRINT("CreateFileW(lpFileName %S)\n",lpFileName);
|
||||||
|
|
||||||
if(hTemplateFile != NULL)
|
if(hTemplateFile != NULL && hTemplateFile != INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
DPRINT("Template file feature not supported yet\n");
|
DPRINT1("Template file feature not supported yet\n");
|
||||||
SetLastError(ERROR_NOT_SUPPORTED);
|
SetLastError(ERROR_NOT_SUPPORTED);
|
||||||
return INVALID_HANDLE_VALUE;
|
return INVALID_HANDLE_VALUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue