https://git.reactos.org/?p=reactos.git;a=commitdiff;h=197ec4c5b8f807ee64f32…
commit 197ec4c5b8f807ee64f323d1461295841bd31c59
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Dec 10 17:04:29 2017 +0100
[KERNEL32] Update some console API prototypes.
---
dll/win32/kernel32/client/console/console.c | 4 ++--
dll/win32/kernel32/client/console/history.c | 28 ++++++++++++++--------------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/dll/win32/kernel32/client/console/console.c
b/dll/win32/kernel32/client/console/console.c
index 71da03a83d..6547c0c2c3 100644
--- a/dll/win32/kernel32/client/console/console.c
+++ b/dll/win32/kernel32/client/console/console.c
@@ -2787,7 +2787,7 @@ SetConsoleIcon(HICON hIcon)
BOOL
WINAPI
DECLSPEC_HOTPATCH
-SetConsoleInputExeNameW(IN LPWSTR lpExeName)
+SetConsoleInputExeNameW(IN LPCWSTR lpExeName)
{
DWORD ExeLength;
@@ -2827,7 +2827,7 @@ SetConsoleInputExeNameW(IN LPWSTR lpExeName)
BOOL
WINAPI
DECLSPEC_HOTPATCH
-SetConsoleInputExeNameA(IN LPSTR lpExeName)
+SetConsoleInputExeNameA(IN LPCSTR lpExeName)
{
NTSTATUS Status;
#ifdef USE_TEB_STATIC_USTR
diff --git a/dll/win32/kernel32/client/console/history.c
b/dll/win32/kernel32/client/console/history.c
index e874ca4dbb..b4513ea632 100644
--- a/dll/win32/kernel32/client/console/history.c
+++ b/dll/win32/kernel32/client/console/history.c
@@ -247,7 +247,7 @@ IntSetConsoleNumberOfCommands(DWORD dwNumCommands,
VOID
WINAPI
DECLSPEC_HOTPATCH
-ExpungeConsoleCommandHistoryW(LPCWSTR lpExeName)
+ExpungeConsoleCommandHistoryW(IN LPCWSTR lpExeName)
{
IntExpungeConsoleCommandHistory(lpExeName, TRUE);
}
@@ -259,7 +259,7 @@ ExpungeConsoleCommandHistoryW(LPCWSTR lpExeName)
VOID
WINAPI
DECLSPEC_HOTPATCH
-ExpungeConsoleCommandHistoryA(LPCSTR lpExeName)
+ExpungeConsoleCommandHistoryA(IN LPCSTR lpExeName)
{
IntExpungeConsoleCommandHistory(lpExeName, FALSE);
}
@@ -271,9 +271,9 @@ ExpungeConsoleCommandHistoryA(LPCSTR lpExeName)
DWORD
WINAPI
DECLSPEC_HOTPATCH
-GetConsoleCommandHistoryW(LPWSTR lpHistory,
- DWORD cbHistory,
- LPCWSTR lpExeName)
+GetConsoleCommandHistoryW(OUT LPWSTR lpHistory,
+ IN DWORD cbHistory,
+ IN LPCWSTR lpExeName)
{
return IntGetConsoleCommandHistory(lpHistory, cbHistory, lpExeName, TRUE);
}
@@ -285,9 +285,9 @@ GetConsoleCommandHistoryW(LPWSTR lpHistory,
DWORD
WINAPI
DECLSPEC_HOTPATCH
-GetConsoleCommandHistoryA(LPSTR lpHistory,
- DWORD cbHistory,
- LPCSTR lpExeName)
+GetConsoleCommandHistoryA(OUT LPSTR lpHistory,
+ IN DWORD cbHistory,
+ IN LPCSTR lpExeName)
{
return IntGetConsoleCommandHistory(lpHistory, cbHistory, lpExeName, FALSE);
}
@@ -299,7 +299,7 @@ GetConsoleCommandHistoryA(LPSTR lpHistory,
DWORD
WINAPI
DECLSPEC_HOTPATCH
-GetConsoleCommandHistoryLengthW(LPCWSTR lpExeName)
+GetConsoleCommandHistoryLengthW(IN LPCWSTR lpExeName)
{
return IntGetConsoleCommandHistoryLength(lpExeName, TRUE);
}
@@ -311,7 +311,7 @@ GetConsoleCommandHistoryLengthW(LPCWSTR lpExeName)
DWORD
WINAPI
DECLSPEC_HOTPATCH
-GetConsoleCommandHistoryLengthA(LPCSTR lpExeName)
+GetConsoleCommandHistoryLengthA(IN LPCSTR lpExeName)
{
return IntGetConsoleCommandHistoryLength(lpExeName, FALSE);
}
@@ -323,8 +323,8 @@ GetConsoleCommandHistoryLengthA(LPCSTR lpExeName)
BOOL
WINAPI
DECLSPEC_HOTPATCH
-SetConsoleNumberOfCommandsW(DWORD dwNumCommands,
- LPCWSTR lpExeName)
+SetConsoleNumberOfCommandsW(IN DWORD dwNumCommands,
+ IN LPCWSTR lpExeName)
{
return IntSetConsoleNumberOfCommands(dwNumCommands, lpExeName, TRUE);
}
@@ -336,8 +336,8 @@ SetConsoleNumberOfCommandsW(DWORD dwNumCommands,
BOOL
WINAPI
DECLSPEC_HOTPATCH
-SetConsoleNumberOfCommandsA(DWORD dwNumCommands,
- LPCSTR lpExeName)
+SetConsoleNumberOfCommandsA(IN DWORD dwNumCommands,
+ IN LPCSTR lpExeName)
{
return IntSetConsoleNumberOfCommands(dwNumCommands, lpExeName, FALSE);
}