Alexander Nicolaysen Sørnes : kernel32: Add stub for GetConsoleAliasW.

Alexandre Julliard julliard at winehq.org
Mon Dec 15 08:27:34 CST 2008


Module: wine
Branch: master
Commit: 93488b19dc8a82d6051d4b700e727234e3bdb01d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=93488b19dc8a82d6051d4b700e727234e3bdb01d

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sun Dec  7 20:41:06 2008 +0100

kernel32: Add stub for GetConsoleAliasW.

---

 dlls/kernel32/console.c     |   23 +++++++++++++++++++++++
 dlls/kernel32/kernel32.spec |    2 +-
 2 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c
index 878452f..a872b1f 100644
--- a/dlls/kernel32/console.c
+++ b/dlls/kernel32/console.c
@@ -2666,3 +2666,26 @@ BOOL CONSOLE_GetEditionMode(HANDLE hConIn, int* mode)
     SERVER_END_REQ;
     return ret;
 }
+
+/******************************************************************
+ *              GetConsoleAliasW
+ *
+ *
+ * RETURNS
+ *    0 if an error occurred, non-zero for success
+ *
+ */
+DWORD WINAPI GetConsoleAliasW(LPWSTR lpSource, LPWSTR lpTargetBuffer,
+                              DWORD TargetBufferLength, LPWSTR lpExename)
+{
+    static const WCHAR empty[] = {' ',0};
+
+    FIXME("(%s,%p,%d,%s): stub\n", debugstr_w(lpSource), lpTargetBuffer, TargetBufferLength, debugstr_w(lpExename));
+
+    if(TargetBufferLength < sizeof(empty)/sizeof(WCHAR))
+        return 0;
+
+    lstrcpyW(lpTargetBuffer, empty);
+
+    return 1;
+}
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 76dd351..32e3523 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -452,7 +452,7 @@
 @ stub GetConsoleAliasExesLengthA
 @ stub GetConsoleAliasExesLengthW
 @ stub GetConsoleAliasExesW
-@ stub GetConsoleAliasW
+@ stdcall GetConsoleAliasW(wstr ptr long wstr)
 @ stub GetConsoleAliasesA
 @ stub GetConsoleAliasesLengthA
 @ stub GetConsoleAliasesLengthW




More information about the wine-cvs mailing list