From 0232b2b680c81f15d3853ce1099a13ea7817f0bb Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 22 Aug 2011 15:26:11 +0000 Subject: [PATCH] [KERNEL32] * CreateFile: If the specified file or device does not exist, the function fails and the last-error code is set to ERROR_FILE_NOT_FOUND. Spotted by Claudiu and Vic. svn path=/trunk/; revision=53373 --- reactos/dll/win32/kernel32/client/file/create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/kernel32/client/file/create.c b/reactos/dll/win32/kernel32/client/file/create.c index a9d6c054760..65c121bb097 100644 --- a/reactos/dll/win32/kernel32/client/file/create.c +++ b/reactos/dll/win32/kernel32/client/file/create.c @@ -212,7 +212,7 @@ HANDLE WINAPI CreateFileW (LPCWSTR lpFileName, NULL)) { WARN("Invalid path\n"); - SetLastError(ERROR_PATH_NOT_FOUND); + SetLastError(ERROR_FILE_NOT_FOUND); return INVALID_HANDLE_VALUE; }