implemented NeedCurrentDirectoryForExePathA/W
Modified: trunk/reactos/lib/kernel32/file/dir.c
_____
Modified: trunk/reactos/lib/kernel32/file/dir.c
--- trunk/reactos/lib/kernel32/file/dir.c 2005-06-30 12:31:36 UTC
(rev 16342)
+++ trunk/reactos/lib/kernel32/file/dir.c 2005-06-30 12:33:12 UTC
(rev 16343)
@@ -1087,14 +1087,13 @@
/*
- * @unimplemented
+ * @implemented
*/
BOOL STDCALL
NeedCurrentDirectoryForExePathW(LPCWSTR ExeName)
{
- DPRINT1("NeedCurrentDirectoryForExePathW(0x%x) not implemented!\n",
ExeName);
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
+ return (wcschr(ExeName,
+ L'\\') != NULL);
}
@@ -1104,12 +1103,8 @@
BOOL STDCALL
NeedCurrentDirectoryForExePathA(LPCSTR ExeName)
{
- PWCHAR ExeNameW;
-
- if (!(ExeNameW = FilenameA2W(ExeName, FALSE)))
- return FALSE;
-
- return NeedCurrentDirectoryForExePathW(ExeNameW);
+ return (strchr(ExeName,
+ '\\') != NULL);
}