mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Change name everywhere back to Ariadne because real person could not be contacted. Non-working email address removed. If this person doesn't contact me before finish of the audit, the copyright will be transferred to ReactOS Foundation. svn path=/trunk/; revision=25049
34 lines
704 B
C
34 lines
704 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS system libraries
|
|
* FILE: lib/msvcrt/stdlib/fullpath.c
|
|
* PURPOSE: Gets the fullpathname
|
|
* PROGRAMER: Ariadne
|
|
* UPDATE HISTORY:
|
|
* 28/12/98: Created
|
|
*/
|
|
|
|
#include <precomp.h>
|
|
#include <tchar.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
_TCHAR* _tfullpath(_TCHAR* absPath, const _TCHAR* relPath, size_t maxLength)
|
|
{
|
|
_TCHAR* lpFilePart;
|
|
DWORD copied;
|
|
|
|
if (!absPath)
|
|
{
|
|
maxLength = MAX_PATH;
|
|
absPath = malloc(maxLength);
|
|
}
|
|
|
|
copied = GetFullPathName(relPath,maxLength,absPath,&lpFilePart);
|
|
if (copied == 0 || copied > maxLength)
|
|
return NULL;
|
|
|
|
return absPath;
|
|
}
|