From 9d50dccbdcea83150ac6488f15fb7c31a8d2bb90 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Thu, 27 Mar 2003 00:01:28 +0000 Subject: [PATCH] Implemented MakeSureDirectoryPathExists. --- dlls/imagehlp/imagehlp_main.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dlls/imagehlp/imagehlp_main.c b/dlls/imagehlp/imagehlp_main.c index 48af47618e1..7645f437371 100644 --- a/dlls/imagehlp/imagehlp_main.c +++ b/dlls/imagehlp/imagehlp_main.c @@ -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; } /***********************************************************************