Austin English : kernel32: GetConsoleAliasW is a stub, make sure it acts like one.

Alexandre Julliard julliard at winehq.org
Mon Jun 15 07:59:05 CDT 2009


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

Author: Austin English <austinenglish at gmail.com>
Date:   Fri Jun 12 12:03:53 2009 -0500

kernel32: GetConsoleAliasW is a stub, make sure it acts like one.

---

 dlls/kernel32/console.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c
index 0caa0ea..34994af 100644
--- a/dlls/kernel32/console.c
+++ b/dlls/kernel32/console.c
@@ -2680,14 +2680,7 @@ BOOL CONSOLE_GetEditionMode(HANDLE hConIn, int* mode)
 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;
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return 0;
 }




More information about the wine-cvs mailing list