Implementing wtmpnam in msvcrt

Juan Lang juan.lang at
Sat Nov 29 10:46:59 CST 2008

Hi Tim,

> So wtmpnam seems to work. Sadly, another line in the output indicates there's
> another error:
> err:listview:LISTVIEW_WindowProc unknown msg 3e9d wp=0032ef78
> lp=00000000
> and that prevents the program from executing. Any ideas?

Sorry, don't know about this one.  What program is this?  Perhaps you
could open a bug?

> At what point & how should the wtmpnam patch (or does my last email + your
> suggestion about the _ effectively do that?)

Missing a verb here.  I assume you're asking at what point you should
send your wtmpnam patch?  That should be sent to wine-patches.  One
style suggestion I'd make though:
+extern int CDECL MSVCRT_swprintf( MSVCRT_wchar_t *str, const
MSVCRT_wchar_t *format, ... );  /* Defined in wcs.c */

This is ugly.  Possible approaches that aren't as jarring:
1. Add this declaration to msvcrt.h
2. Use MSVRT_vsnwprintf instead, since it's already declared in msvcrt.h
3. Use sprintfW instead.


More information about the wine-devel mailing list