Implemented MakeSureDirectoryPathExists.

This commit is contained in:
P. Christeas 2003-03-27 00:01:28 +00:00 committed by Alexandre Julliard
parent d0300d92e3
commit 9d50dccbdc
1 changed files with 8 additions and 3 deletions

View File

@ -85,9 +85,14 @@ PAPI_VERSION WINAPI ImagehlpApiVersionEx(PAPI_VERSION AppVersion)
*/
BOOL WINAPI MakeSureDirectoryPathExists(LPCSTR DirPath)
{
FIXME("(%s): stub\n", debugstr_a(DirPath));
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
if (CreateDirectoryA(DirPath,NULL))
return TRUE;
if (GetLastError() == ERROR_ALREADY_EXISTS)
{
SetLastError(ERROR_SUCCESS);
return TRUE;
}
return FALSE;
}
/***********************************************************************