Parcourir la source

Fix 'Edit Settings' problem for Win64 (#312)

bel2125 il y a 9 ans
Parent
commit
236411c393
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/main.c

+ 2 - 2
src/main.c

@@ -1209,7 +1209,7 @@ show_error(void)
 
 
 
 
 static void *
 static void *
-align(void *ptr, DWORD alig)
+align(void *ptr, uintptr_t alig)
 {
 {
 	uintptr_t ul = (uintptr_t)ptr;
 	uintptr_t ul = (uintptr_t)ptr;
 	ul += alig;
 	ul += alig;
@@ -1778,7 +1778,7 @@ show_settings_dialog()
 #define WIDTH (460)
 #define WIDTH (460)
 #define LABEL_WIDTH (90)
 #define LABEL_WIDTH (90)
 
 
-	unsigned char mem[8192], *p;
+	unsigned char mem[16*1024], *p;
 	const struct mg_option *options;
 	const struct mg_option *options;
 	DWORD style;
 	DWORD style;
 	DLGTEMPLATE *dia = (DLGTEMPLATE *)mem;
 	DLGTEMPLATE *dia = (DLGTEMPLATE *)mem;