Some fixes for console alias functions:
authorJeffrey Morlan <mrnobo1024@yahoo.com>
Thu, 10 Jul 2008 15:43:06 +0000 (15:43 +0000)
committerJeffrey Morlan <mrnobo1024@yahoo.com>
Thu, 10 Jul 2008 15:43:06 +0000 (15:43 +0000)
commitb72b1e87db7eaeeeebd31ca557684ba56f075b4d
tree6171fde60e490a41290f6f197f5ea107479b6573
parent9c5c81eba23196bc0832a92ffffec4e1af1d6293
Some fixes for console alias functions:
- Pass buffers via a CSR capture buffer, instead of trying to cram them in the size-limited LPC message.
- GetConsoleAliasW: Return number of bytes written, not unrelated "Size" variable.
- GetConsoleAliasExesW: Return value is in bytes, not characters.
- GetConsoleAliasA, GetConsoleAliasExesA: Parameters and returns of corresponding W functions are in bytes, not characters.
- IntFindAliasHeader, IntGetAliasEntry: Break when current name is greater, not less.
- IntCreateAliasHeader: Fix bad use of pointer arithmetic; initialize Data to NULL.
- IntCreateAliasEntry: Fix bad use of pointer arithmetic.
- IntGetConsoleAliasesExesLength: Fix infinite loop; add sizeof(WCHAR) instead of 1.
- IntGetAllConsoleAliasesLength: Fix infinite loop.
- CsrGetConsoleAlias, CsrGetAllConsoleAliases, CsrGetConsoleAliasesExes: Don't use a winerror where an NTSTATUS is needed.

svn path=/trunk/; revision=34413
reactos/dll/win32/kernel32/misc/console.c
reactos/subsystems/win32/csrss/api/alias.c