Startup fix for scanbin 6.0

Stefan Leichter Stefan.Leichter at camline.com
Wed Apr 3 14:58:34 CST 2002


Hello,

the attached patch let scanbin 6.0 (http://members.aol.com/bellamyjc/) start 
instead of crash. I know the patch does not fix the problem (DrawText call 
with a Null pointer) it hides only the crash but it will break nothing ;-)

ChangeLog:
	* dlls/user/text.c:
	<Stefan.Leichter at camLine.com>
	fixed crash on uninitialized pointer in DrawTextExA


--- ../wine-20020310/dlls/user/text.c   Mon Mar 11 19:38:16 2002
+++ dlls/user/text.c    Wed Apr  3 21:08:08 2002
@@ -965,6 +965,10 @@
    DWORD wmax;
    DWORD amax;

+   if (!str) {
+       ERR("called without text\n");
+       return 0;
+   }
    if (count == -1) count = strlen(str);
    if (!count) return 0;
    wcount = MultiByteToWideChar( CP_ACP, 0, str, count, NULL, 0 );



More information about the wine-patches mailing list