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:
Thomas Bluemel 2005-10-29 15:05:37 +00:00
parent e63b48188e
commit bffa3474f4
2 changed files with 49 additions and 28 deletions

View file

@ -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 */

View file

@ -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
*/