kernel32: add stubs for GetConsoleCommandHistoryLengthA/W (try 2) (1/4)
Austin English
austinenglish at gmail.com
Thu Jan 19 16:12:32 CST 2012
Resending as a series. With these functions, all listed commands at
http://www.computerhope.com/doskeyhl.htm no longer crash.
--
-Austin
-------------- next part --------------
From c59f30883a6828d4413a9bfbcd9849807a382e43 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Thu, 19 Jan 2012 15:48:51 -0600
Subject: [PATCH 1/4] 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..990ce24 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(LPSTR unknown)
+{
+ FIXME(": (%s) stub!\n", 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(LPWSTR unknown)
+{
+ FIXME(": (%s) stub!\n", wine_dbgstr_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
--
1.7.3.4
More information about the wine-patches
mailing list