mirror of
https://github.com/reactos/reactos.git
synced 2026-06-24 17:17:45 +08:00
implemented the 32 bit version of GetSystemWow64DirectoryA/W (just set the last error code to ERROR_CALL_NOT_IMPLEMENTED)
svn path=/trunk/; revision=18852
This commit is contained in:
@@ -324,4 +324,53 @@ GetSystemWindowsDirectoryW(
|
||||
return GetWindowsDirectoryW( lpBuffer, uSize );
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
UINT
|
||||
STDCALL
|
||||
GetSystemWow64DirectoryW(
|
||||
LPWSTR lpBuffer,
|
||||
UINT uSize
|
||||
)
|
||||
{
|
||||
#ifdef _WIN64
|
||||
DPRINT1("GetSystemWow64DirectoryW is UNIMPLEMENTED!\n");
|
||||
return 0;
|
||||
#else
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
UINT
|
||||
STDCALL
|
||||
GetSystemWow64DirectoryA(
|
||||
LPSTR lpBuffer,
|
||||
UINT uSize
|
||||
)
|
||||
{
|
||||
#ifdef _WIN64
|
||||
WCHAR BufferW[MAX_PATH];
|
||||
UINT ret;
|
||||
|
||||
ret = GetSystemWow64DirectoryW(BufferW, MAX_PATH);
|
||||
|
||||
if (!ret) return 0;
|
||||
if (ret > MAX_PATH)
|
||||
{
|
||||
SetLastError(ERROR_FILENAME_EXCED_RANGE);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return FilenameW2A_FitOrFail(lpBuffer, uSize, BufferW, ret+1);
|
||||
#else
|
||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
||||
@@ -1145,20 +1145,6 @@ GetModuleHandleExW(
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
UINT
|
||||
STDCALL
|
||||
GetSystemWow64DirectoryW(
|
||||
LPWSTR lpBuffer,
|
||||
UINT uSize
|
||||
)
|
||||
{
|
||||
STUB;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
@@ -1390,20 +1376,6 @@ GetModuleHandleExA(
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
UINT
|
||||
STDCALL
|
||||
GetSystemWow64DirectoryA(
|
||||
LPSTR lpBuffer,
|
||||
UINT uSize
|
||||
)
|
||||
{
|
||||
STUB;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user