[Bug 16386] FAR crashes with Unimplemented KERNEL32.dll.GetConsoleAliasW

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Dec 24 13:12:15 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=16386





--- Comment #5 from Vasya Pupkin <j3qq4h7h2v at gmail.com>  2008-12-24 13:12:15 ---
> + * RETURNS
> + *    0 if an error occurred, non-zero for success

Alexander, did you understand what you doing?

You write an empty string in lpTargetBuffer and return success code regardless
of lpSource and lpExename at all.

As a result, software, which uses this function, will think, that ANY command
is alias, which points to an empty string.

That why "invalid commands like "asdf" produce no output" in FAR - they are
just not executed, because those "asdf" is replaced with space.

This function is stub, and it must ALWAYS return zero and don't touch
lpTargetBuffer:

DWORD WINAPI GetConsoleAliasW(LPWSTR lpSource, LPWSTR lpTargetBuffer,
                              DWORD TargetBufferLength, LPWSTR lpExename)
{
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return 0;
}


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list