--- trunk/reactos/lib/kernel32/file/curdir.c 2005-10-29 14:51:18 UTC (rev 18851)
+++ trunk/reactos/lib/kernel32/file/curdir.c 2005-10-29 15:05:37 UTC (rev 18852)
@@ -324,4 +324,53 @@
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 */
--- trunk/reactos/lib/kernel32/misc/stubs.c 2005-10-29 14:51:18 UTC (rev 18851)
+++ trunk/reactos/lib/kernel32/misc/stubs.c 2005-10-29 15:05:37 UTC (rev 18852)
@@ -1148,20 +1148,6 @@
/*
* @unimplemented
*/
-UINT
-STDCALL
-GetSystemWow64DirectoryW(
- LPWSTR lpBuffer,
- UINT uSize
- )
-{
- STUB;
- return 0;
-}
-
-/*
- * @unimplemented
- */
BOOL
STDCALL
GetVolumeNameForVolumeMountPointW(
@@ -1393,20 +1379,6 @@
/*
* @unimplemented
*/
-UINT
-STDCALL
-GetSystemWow64DirectoryA(
- LPSTR lpBuffer,
- UINT uSize
- )
-{
- STUB;
- return 0;
-}
-
-/*
- * @unimplemented
- */
BOOL
STDCALL
GetVolumeNameForVolumeMountPointA(