[Bug 10393] Sam and Max hits unimplemented function KERNEL32.dll. GetConsoleInpu tExeNameA

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Nov 24 16:31:18 CST 2007


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


Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |focht at gmx.net




--- Comment #6 from Anastasius Focht <focht at gmx.net>  2007-11-24 16:31:17 ---
Hello,

the console InputExeName API functions are just simple get/set to (static)
filename buffer. Pretty easy to implement.

Let me give some hints so you can make a patch which implements all
functions...

SetConsoleInputExeNameA
SetConsoleInputExeNameW
GetConsoleInputExeNameA
GetConsoleInputExeNameW

To avoid code duplication use the unicode versions to actually do the work
(retrieve/store exe name).

SetConsoleInputExeNameW -> copy the exe name into module local WCHAR buffer of
MAX_PATH+1
SetConsoleInputExeNameA -> convert to unicode and call SetConsoleInputExeNameW

GetConsoleInputExeNameW -> retrieve the exe name from WCHAR buffer
GetConsoleInputExeNameA -> use GetConsoleInputExeNameW and convert to ansi

Use the console critical section in functions to guard against multithreaded
buffer get/set.
Validate input/output parameters, such as buffer length (should not exceed
internal store) and the like.

This info should get you a good patch which works (tm) ;-)

Regards


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list