implemented NeedCurrentDirectoryForExePathA/W

svn path=/trunk/; revision=16343
This commit is contained in:
Thomas Bluemel 2005-06-30 12:33:12 +00:00
parent 005201f320
commit 444df32c83

View file

@ -1087,14 +1087,13 @@ GetDllDirectoryA(
/*
* @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 @@ NeedCurrentDirectoryForExePathW(LPCWSTR ExeName)
BOOL STDCALL
NeedCurrentDirectoryForExePathA(LPCSTR ExeName)
{
PWCHAR ExeNameW;
if (!(ExeNameW = FilenameA2W(ExeName, FALSE)))
return FALSE;
return NeedCurrentDirectoryForExePathW(ExeNameW);
return (strchr(ExeName,
'\\') != NULL);
}