Austin English : kernel32: Add stubs for GetConsoleCommandHistoryLengthA/W.
Alexandre Julliard
julliard at winehq.org
Mon Jan 23 13:01:11 CST 2012
Module: wine
Branch: master
Commit: 4110068dc20b1678f772949d3429dc7985425f84
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4110068dc20b1678f772949d3429dc7985425f84
Author: Austin English <austinenglish at gmail.com>
Date: Thu Jan 19 15:48:51 2012 -0600
kernel32: Add stubs for GetConsoleCommandHistoryLengthA/W.
---
dlls/kernel32/console.c | 18 ++++++++++++++++++
dlls/kernel32/kernel32.spec | 4 ++--
2 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/console.c b/dlls/kernel32/console.c
index b50bce1..7238936 100644
--- a/dlls/kernel32/console.c
+++ b/dlls/kernel32/console.c
@@ -3157,3 +3157,21 @@ DWORD WINAPI GetConsoleCommandHistoryW(DWORD unknown1, DWORD unknown2, DWORD unk
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
+
+/* Undocumented, called by native doskey.exe */
+/* FIXME: Should use CONSOLE_GetHistory() above for full implementation */
+DWORD WINAPI GetConsoleCommandHistoryLengthA(LPCSTR unknown)
+{
+ FIXME(": (%s) stub!\n", debugstr_a(unknown));
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/* Undocumented, called by native doskey.exe */
+/* FIXME: Should use CONSOLE_GetHistory() above for full implementation */
+DWORD WINAPI GetConsoleCommandHistoryLengthW(LPCWSTR unknown)
+{
+ FIXME(": (%s) stub!\n", debugstr_w(unknown));
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 9be4f00..456fb1a 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -466,8 +466,8 @@
@ stdcall GetConsoleCP()
@ stub GetConsoleCharType
@ stdcall GetConsoleCommandHistoryA(long long long)
-@ stub GetConsoleCommandHistoryLengthA
-@ stub GetConsoleCommandHistoryLengthW
+@ stdcall GetConsoleCommandHistoryLengthA(str)
+@ stdcall GetConsoleCommandHistoryLengthW(wstr)
@ stdcall GetConsoleCommandHistoryW(long long long)
@ stdcall GetConsoleCursorInfo(long ptr)
@ stub GetConsoleCursorMode
More information about the wine-cvs
mailing list