mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:03:12 +00:00
Hopefully create a branch and not destroy the svn repository.
svn path=/branches/reactos-yarotows/; revision=45219
This commit is contained in:
parent
c88ec84439
commit
6afbc8f483
19442 changed files with 0 additions and 1060695 deletions
33
lib/sdk/crt/stdlib/fullpath.c
Normal file
33
lib/sdk/crt/stdlib/fullpath.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue