diff -urN wine-4.8-orig/dlls/ntdll/ntdll_misc.h wine-4.8/dlls/ntdll/ntdll_misc.h
--- wine-4.8-orig/dlls/ntdll/ntdll_misc.h	2019-05-11 00:43:42 +0900
+++ wine-4.8/dlls/ntdll/ntdll_misc.h	2019-05-15 17:48:03 +0900
@@ -223,8 +223,8 @@
 {
     unsigned int str_pos;       /* current position in strings buffer */
     unsigned int out_pos;       /* current position in output buffer */
-    char         strings[1024]; /* buffer for temporary strings */
-    char         output[1024];  /* current output line */
+    char         strings[2000]; /* buffer for temporary strings */
+    char         output[2000];  /* current output line */
 };
 
 /* thread private data, stored in NtCurrentTeb()->GdiTebBatch */
diff -urN wine-4.8-orig/include/wine/debug.h wine-4.8/include/wine/debug.h
--- wine-4.8-orig/include/wine/debug.h	2019-05-11 00:43:42 +0900
+++ wine-4.8/include/wine/debug.h	2019-05-15 17:48:03 +0900
@@ -221,7 +221,7 @@
 static inline const char *wine_dbgstr_an( const char *str, int n )
 {
     static const char hex[16] = "0123456789abcdef";
-    char buffer[300], *dst = buffer;
+    char buffer[1000], *dst = buffer;
 
     if (!str) return "(null)";
     if (!((ULONG_PTR)str >> 16)) return wine_dbg_sprintf( "#%04x", LOWORD(str) );
@@ -263,7 +263,7 @@
 static inline const char *wine_dbgstr_wn( const WCHAR *str, int n )
 {
     static const char hex[16] = "0123456789abcdef";
-    char buffer[300], *dst = buffer;
+    char buffer[1000], *dst = buffer;
 
     if (!str) return "(null)";
     if (!((ULONG_PTR)str >> 16)) return wine_dbg_sprintf( "#%04x", LOWORD(str) );
diff -urN wine-4.8-orig/libs/wine/debug.c wine-4.8/libs/wine/debug.c
--- wine-4.8-orig/libs/wine/debug.c	2019-05-11 00:43:42 +0900
+++ wine-4.8/libs/wine/debug.c	2019-05-15 17:48:03 +0900
@@ -315,6 +315,7 @@
     if (n == -1) n = strlen(str);
     if (n < 0) n = 0;
     size = 10 + min( 300, n * 4 );
+    size += 1000;
     dst = res = funcs.get_temp_buffer( size );
     *dst++ = '"';
     while (n-- > 0 && dst <= res + size - 9)
@@ -373,6 +374,7 @@
     }
     if (n < 0) n = 0;
     size = 12 + min( 300, n * 5 );
+    size += 1000;
     dst = res = funcs.get_temp_buffer( size );
     *dst++ = 'L';
     *dst++ = '"';
