Module: wine Branch: master Commit: 9e74a249dfc560133447e62b7e112f7da7eb03e2 URL: https://gitlab.winehq.org/wine/wine/-/commit/9e74a249dfc560133447e62b7e112f7...
Author: Piotr Caban piotr@codeweavers.com Date: Tue Oct 18 12:09:55 2022 +0200
winedump: Handle NULL in get_unicode_str.
---
tools/winedump/dump.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/tools/winedump/dump.c b/tools/winedump/dump.c index f2cb601b295..7d4a1a320d5 100644 --- a/tools/winedump/dump.c +++ b/tools/winedump/dump.c @@ -202,6 +202,7 @@ const char *get_unicode_str( const WCHAR *str, int len ) char *buffer; int i = 0;
+ if (!str) return "(null)"; if (len == -1) len = strlenW( str ); buffer = dump_want_n( len * 6 + 3); buffer[i++] = '"';