Commit in reactos/lib/kernel32/file on MAIN
hardlink.c+3-21.1 -> 1.2
minor fix

reactos/lib/kernel32/file
hardlink.c 1.1 -> 1.2
diff -u -r1.1 -r1.2
--- hardlink.c	14 Mar 2004 09:21:42 -0000	1.1
+++ hardlink.c	14 Mar 2004 10:16:18 -0000	1.2
@@ -1,4 +1,4 @@
-/* $Id: hardlink.c,v 1.1 2004/03/14 09:21:42 weiden Exp $
+/* $Id: hardlink.c,v 1.2 2004/03/14 10:16:18 weiden Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -79,7 +79,8 @@
     return FALSE;
   }
   
-  if(!RtlGetFullPathName_U((LPWSTR)lpExistingFileName, NeededSize, lpNtLinkTarget, &lpFilePart))
+  if(!RtlGetFullPathName_U((LPWSTR)lpExistingFileName, NeededSize, lpNtLinkTarget, &lpFilePart) ||
+     (*lpNtLinkTarget) == L'\0')
   {
     RtlFreeHeap(RtlGetProcessHeap(), 0, lpNtLinkTarget);
     RtlFreeUnicodeString(&LinkTarget);
CVSspam 0.2.8