From e163d9c89c336f82d2f8e719570c8b73f6722e8d Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 6 Aug 2001 18:37:23 +0000 Subject: [PATCH] Fixed a bug in FindCloseFile(). The return value was allways FALSE. Cmd's 'dir /s' will now work. svn path=/trunk/; revision=2157 --- reactos/lib/kernel32/file/find.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/kernel32/file/find.c b/reactos/lib/kernel32/file/find.c index 7226f0f4d4c..15aca0fb392 100644 --- a/reactos/lib/kernel32/file/find.c +++ b/reactos/lib/kernel32/file/find.c @@ -1,4 +1,4 @@ -/* $Id: find.c,v 1.28 2001/08/01 19:26:41 hbirr Exp $ +/* $Id: find.c,v 1.29 2001/08/06 18:37:23 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -350,7 +350,7 @@ FindClose ( DPRINT("FindClose(hFindFile %x)\n",hFindFile); - if (hFindFile || hFindFile == INVALID_HANDLE_VALUE) + if (!hFindFile || hFindFile == INVALID_HANDLE_VALUE) { SetLastError (ERROR_INVALID_HANDLE); return FALSE;