diff -urN wine-4.12.1-orig/dlls/ntdll/ntdll_misc.h wine-4.12.1/dlls/ntdll/ntdll_misc.h
--- wine-4.12.1-orig/dlls/ntdll/ntdll_misc.h	2019-07-07 18:25:09 +0900
+++ wine-4.12.1/dlls/ntdll/ntdll_misc.h	2019-08-03 00:58:02 +0900
@@ -221,8 +221,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.12.1-orig/include/wine/debug.h wine-4.12.1/include/wine/debug.h
--- wine-4.12.1-orig/include/wine/debug.h	2019-07-07 18:25:09 +0900
+++ wine-4.12.1/include/wine/debug.h	2019-08-03 00:58:02 +0900
@@ -221,7 +221,7 @@
 static inline const char *wine_dbgstr_an( const char *str, int n )
 {
     static const char hex[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
-    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] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
-    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.12.1-orig/libs/wine/debug.c wine-4.12.1/libs/wine/debug.c
--- wine-4.12.1-orig/libs/wine/debug.c	2019-07-07 18:25:09 +0900
+++ wine-4.12.1/libs/wine/debug.c	2019-08-03 00:58:02 +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++ = '"';
