minor fix

svn path=/trunk/; revision=8702
This commit is contained in:
Thomas Bluemel 2004-03-14 10:16:18 +00:00
parent b0b55220e6
commit 04b43aab9e

View file

@ -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 @@ CreateHardLinkW(
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);