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

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;
}
/***********************************************************************