mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
implemented NeedCurrentDirectoryForExePathA/W
svn path=/trunk/; revision=16343
This commit is contained in:
parent
005201f320
commit
444df32c83
1 changed files with 5 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue