[ros-diffs] [weiden] 18852: implemented the 32 bit version of GetSystemWow64DirectoryA/W (just set the last error code to ERROR_CALL_NOT_IMPLEMENTED)

weiden at svn.reactos.com weiden at svn.reactos.com
Sat Oct 29 17:05:54 CEST 2005


implemented the 32 bit version of GetSystemWow64DirectoryA/W (just set
the last error code to ERROR_CALL_NOT_IMPLEMENTED)
Modified: trunk/reactos/lib/kernel32/file/curdir.c
Modified: trunk/reactos/lib/kernel32/misc/stubs.c
  _____  

Modified: trunk/reactos/lib/kernel32/file/curdir.c
--- 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 */
  _____  

Modified: trunk/reactos/lib/kernel32/misc/stubs.c
--- 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(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051029/37548546/attachment.html


More information about the Ros-diffs mailing list