Add wtmpnam to msvcrt.dll

Tim Holy holy at wustl.edu
Thu Nov 20 20:17:54 CST 2008


In running an old Windows program, I received the following error:

wine: Call from 0x7b845450 to unimplemented function 
msvcrt.dll._wtmpnam, aborting

Googling revealed that this function is a "stub". I downloaded the source code 
for 1.1.8 and took a stab at implementing it. A diff (relative to 
wine-1.1.8/dlls/msvcrt/file.c) is attached.

Please note: I don't know the wine codebase, and I did not even get as far as 
successfully building it to test it. I was held back by concerns such as: if 
MSVCRT_tmpname gets initialized, where does that occur? So, please don't 
take this as anything other than hopefully a "head start" on implementing this 
properly. I'd be happy to do a test build (assuming I can successfully install 
the dependencies) and try running that same program once someone who 
knows what they're doing fixes this patch up :-).

Thanks for all your efforts on wine!

Best,
--Tim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine_dll_msvcrt_file.c
Type: text/x-csrc
Size: 85632 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20081120/d3f1a9b5/attachment-0001.c 


More information about the wine-patches mailing list