mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
- fix error status
svn path=/trunk/; revision=32124
This commit is contained in:
parent
e31d1017f5
commit
7a92e8a9e6
1 changed files with 8 additions and 8 deletions
|
@ -364,15 +364,15 @@ CSR_API(CsrGetConsoleAlias)
|
|||
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 @@ CSR_API(CsrGetAllConsoleAliases)
|
|||
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 @@ CSR_API(CsrGetAllConsoleAliasesLength)
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue