mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
added stubs for NeedCurrentDirectoryForExePathA/W()
svn path=/trunk/; revision=13511
This commit is contained in:
parent
5d99bb07ca
commit
a780838c2e
5 changed files with 56 additions and 0 deletions
|
@ -1107,6 +1107,12 @@ GetCurrentDirectoryA(
|
|||
LPSTR lpBuffer
|
||||
);
|
||||
|
||||
BOOL
|
||||
STDCALL
|
||||
NeedCurrentDirectoryForExePathA(
|
||||
LPCSTR ExeName
|
||||
);
|
||||
|
||||
WINBOOL
|
||||
STDCALL
|
||||
GetDiskFreeSpaceA(
|
||||
|
|
|
@ -358,6 +358,7 @@ typedef PPROGRESS_ROUTINE LPPROGRESS_ROUTINE;
|
|||
#define GetWindowsDirectory GetWindowsDirectoryW
|
||||
#define SetCurrentDirectory SetCurrentDirectoryW
|
||||
#define GetCurrentDirectory GetCurrentDirectoryW
|
||||
#define NeedCurrentDirectoryForExePath NeedCurrentDirectoryForExePathW
|
||||
#define GetDiskFreeSpace GetDiskFreeSpaceW
|
||||
#define GetDiskFreeSpaceEx GetDiskFreeSpaceExW
|
||||
#define CreateDirectory CreateDirectoryW
|
||||
|
@ -878,6 +879,7 @@ typedef PPROGRESS_ROUTINE LPPROGRESS_ROUTINE;
|
|||
#define GetWindowsDirectory GetWindowsDirectoryA
|
||||
#define SetCurrentDirectory SetCurrentDirectoryA
|
||||
#define GetCurrentDirectory GetCurrentDirectoryA
|
||||
#define NeedCurrentDirectoryForExePath NeedCurrentDirectoryForExePathA
|
||||
#define GetDiskFreeSpace GetDiskFreeSpaceA
|
||||
#define GetDiskFreeSpaceEx GetDiskFreeSpaceExA
|
||||
#define CreateDirectory CreateDirectoryA
|
||||
|
|
|
@ -1118,6 +1118,12 @@ GetCurrentDirectoryW(
|
|||
LPWSTR lpBuffer
|
||||
);
|
||||
|
||||
BOOL
|
||||
STDCALL
|
||||
NeedCurrentDirectoryForExePathW(
|
||||
LPCWSTR ExeName
|
||||
);
|
||||
|
||||
WINBOOL
|
||||
STDCALL
|
||||
GetDiskFreeSpaceW(
|
||||
|
|
|
@ -1059,4 +1059,44 @@ GetDllDirectoryA(
|
|||
return Ret;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
BOOL STDCALL
|
||||
NeedCurrentDirectoryForExePathW(LPCWSTR ExeName)
|
||||
{
|
||||
DPRINT1("NeedCurrentDirectoryForExePathW(0x%x) not implemented!\n", ExeName);
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
BOOL STDCALL
|
||||
NeedCurrentDirectoryForExePathA(LPCSTR ExeName)
|
||||
{
|
||||
ANSI_STRING ExeNameA;
|
||||
UNICODE_STRING ExeNameU;
|
||||
BOOL Ret;
|
||||
|
||||
RtlInitAnsiString(&ExeNameA, ExeName);
|
||||
if(bIsFileApiAnsi)
|
||||
{
|
||||
RtlAnsiStringToUnicodeString(&ExeNameU, &ExeNameA, TRUE);
|
||||
}
|
||||
else
|
||||
{
|
||||
RtlOemStringToUnicodeString(&ExeNameU, &ExeNameA, TRUE);
|
||||
}
|
||||
|
||||
Ret = NeedCurrentDirectoryForExePathW(ExeNameU.Buffer);
|
||||
|
||||
RtlFreeUnicodeString(&ExeNameU);
|
||||
|
||||
return Ret;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -641,6 +641,8 @@ MoveFileW@8
|
|||
MoveFileWithProgressW@20
|
||||
MulDiv@12
|
||||
MultiByteToWideChar@24
|
||||
NeedCurrentDirectoryForExePathA@4
|
||||
NeedCurrentDirectoryForExePathW@4
|
||||
NlsConvertIntegerToString@20
|
||||
;NlsGetCacheUpdateCount
|
||||
;NlsResetProcessLocale
|
||||
|
|
Loading…
Reference in a new issue