Author: janderwald
Date: Tue Feb 5 01:32:37 2008
New Revision: 32124
URL:
http://svn.reactos.org/svn/reactos?rev=32124&view=rev
Log:
- fix error status
Modified:
trunk/reactos/subsystems/win32/csrss/api/alias.c
Modified: trunk/reactos/subsystems/win32/csrss/api/alias.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/api…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/api/alias.c (original)
+++ trunk/reactos/subsystems/win32/csrss/api/alias.c Tue Feb 5 01:32:37 2008
@@ -364,15 +364,15 @@
Header = IntFindAliasHeader(RootHeader,
Request->Data.GetAllConsoleAlias.lpExeName);
if (!Header)
{
- Request->Status = ERROR_NO_DATA; // FIXME
- return ERROR_NO_DATA;
+ Request->Status = STATUS_INVALID_PARAMETER;
+ return STATUS_INVALID_PARAMETER;
}
Entry = IntGetAliasEntry(Header, Request->Data.GetConsoleAlias.lpSource);
if (!Entry)
{
- Request->Status = ERROR_NO_DATA; // FIXME
- return ERROR_NO_DATA;
+ Request->Status = STATUS_INVALID_PARAMETER;
+ return STATUS_INVALID_PARAMETER;
}
Length = (wcslen(Entry->lpTarget)+1) * sizeof(WCHAR);
@@ -401,8 +401,8 @@
Header = IntFindAliasHeader(RootHeader,
Request->Data.GetAllConsoleAlias.lpExeName);
if (!Header)
{
- Request->Status = ERROR_NO_DATA; // FIXME
- return ERROR_NO_DATA;
+ Request->Status = STATUS_INVALID_PARAMETER;
+ return STATUS_INVALID_PARAMETER;
}
if (IntGetAllConsoleAliasesLength(Header) >
Request->Data.GetAllConsoleAlias.AliasBufferLength)
@@ -434,8 +434,8 @@
Header = IntFindAliasHeader(RootHeader,
Request->Data.GetAllConsoleAliasesLength.lpExeName);
if (!Header)
{
- Request->Status = ERROR_NO_DATA; // FIXME
- return ERROR_NO_DATA;
+ Request->Status = STATUS_INVALID_PARAMETER;
+ return STATUS_INVALID_PARAMETER;
}
Length = IntGetAllConsoleAliasesLength(Header);