commit 2d11bb12bc35afbe55c3656f10bc7d19475c1746
parent 0ec8122582ee801fcad88a64645df397d28bc8d6
Author: Michael Savage <mikejsavage@gmail.com>
Date: Mon, 30 Oct 2017 21:15:26 +0200
Fix get_config_directory on Windows
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/win32_home.h b/win32_home.h
@@ -5,9 +5,9 @@
#include "dynstr.h"
inline void get_config_directory( DynamicString & path ) {
- char appdata[ PATH_MAX ];
+ char appdata[ MAX_PATH ];
if( SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, appdata ) != S_OK ) {
FATAL( "can't find AppData" );
}
- path.printf( "{}\\Medfall", appdata );
+ path.sprintf( "{}\\Medfall", appdata );
}