mirror of
https://github.com/reactos/reactos.git
synced 2024-08-08 04:08:29 +00:00
return 0 when type is DWORD
remove unused alias struct svn path=/trunk/; revision=32123
This commit is contained in:
parent
db26f5d219
commit
e31d1017f5
|
@ -19,14 +19,6 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
typedef struct tagALIAS
|
||||
{
|
||||
struct tagALIAS *next;
|
||||
LPWSTR lpName;
|
||||
LPWSTR lpSubst;
|
||||
DWORD dwUsed;
|
||||
} ALIAS, *LPALIAS;
|
||||
|
||||
extern BOOL WINAPI DefaultConsoleCtrlHandler(DWORD Event);
|
||||
extern __declspec(noreturn) VOID CALLBACK ConsoleControlDispatcher(DWORD CodeAndFlag);
|
||||
extern RTL_CRITICAL_SECTION ConsoleLock;
|
||||
|
@ -187,7 +179,7 @@ AddConsoleAliasA (LPCSTR lpSource,
|
|||
BOOL STDCALL
|
||||
AddConsoleAliasW (LPCWSTR lpSource,
|
||||
LPCWSTR lpTarget,
|
||||
LPCWSTR lpExeName /* FIXME: currently ignored */)
|
||||
LPCWSTR lpExeName)
|
||||
{
|
||||
CSR_API_MESSAGE Request;
|
||||
ULONG CsrRequest;
|
||||
|
@ -325,7 +317,7 @@ GetConsoleAliasW (LPWSTR lpSource,
|
|||
if (!NT_SUCCESS(Status) || !NT_SUCCESS(Status = Request.Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return Request.Data.GetConsoleAlias.BytesWritten / sizeof(WCHAR);
|
||||
|
@ -395,7 +387,7 @@ GetConsoleAliasExesW (LPWSTR lpExeNameBuffer,
|
|||
if (!NT_SUCCESS(Status) || !NT_SUCCESS(Status = Request.Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return Request.Data.GetConsoleAliasesExes.BytesWritten / sizeof(WCHAR);
|
||||
|
@ -445,7 +437,7 @@ GetConsoleAliasExesLengthW (VOID)
|
|||
if (!NT_SUCCESS(Status) || !NT_SUCCESS(Status = Request.Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return Request.Data.GetConsoleAliasesExesLength.Length;
|
||||
|
@ -483,7 +475,7 @@ GetConsoleAliasesW (LPWSTR AliasBuffer,
|
|||
|
||||
dwLength = GetConsoleAliasesLengthW(ExeName);
|
||||
if (!dwLength || dwLength > AliasBufferLength)
|
||||
return FALSE;
|
||||
return 0;
|
||||
|
||||
CsrRequest = MAKE_CSR_API(GET_ALL_CONSOLE_ALIASES, CSR_NATIVE);
|
||||
Request.Data.GetAllConsoleAlias.AliasBuffer = AliasBuffer;
|
||||
|
@ -498,7 +490,7 @@ GetConsoleAliasesW (LPWSTR AliasBuffer,
|
|||
if (!NT_SUCCESS(Status) || !NT_SUCCESS(Status = Request.Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return Request.Data.GetAllConsoleAlias.BytesWritten / sizeof(WCHAR);
|
||||
|
@ -557,7 +549,7 @@ GetConsoleAliasesLengthW (LPWSTR lpExeName)
|
|||
if (!NT_SUCCESS(Status) || !NT_SUCCESS(Status = Request.Status))
|
||||
{
|
||||
SetLastErrorByStatus(Status);
|
||||
return FALSE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
return Request.Data.GetAllConsoleAliasesLength.Length;
|
||||
|
|
Loading…
Reference in a new issue