Commit 32b6ef34 authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

Check for NULL pointer in DrawTextExA.

parent 7c3fca16
......@@ -983,6 +983,7 @@ INT WINAPI DrawTextExA( HDC hdc, LPSTR str, INT count,
DWORD wmax;
DWORD amax;
if (!str) return 0;
if (count == -1) count = strlen(str);
if (!count) return 0;
wcount = MultiByteToWideChar( CP_ACP, 0, str, count, NULL, 0 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment