From 5761233dc9e095612ec366d408f80d2bf264933a Mon Sep 17 00:00:00 2001 From: squall-leonhart Date: Tue, 24 Mar 2009 05:30:20 +0000 Subject: [PATCH] git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@872 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/win32/MainWndFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win32/MainWndFile.cpp b/src/win32/MainWndFile.cpp index df87aaed..c89b7f23 100644 --- a/src/win32/MainWndFile.cpp +++ b/src/win32/MainWndFile.cpp @@ -1,6 +1,7 @@ #include "stdafx.h" #include "MainWnd.h" +#include #include "ExportGSASnapshot.h" #include "FileDlg.h" #include "GSACodeSelect.h" @@ -488,7 +489,7 @@ void MainWnd::OnFileExportBatteryfile() CString filter = winLoadFilter(IDS_FILTER_SAV); CString title = winResLoadString(IDS_SELECT_BATTERY_FILE); - CString saveDir = regQueryStringValue("batteryDir", DEFAULT_BATTERY_DIR); + CString saveDir = regQueryStringValue("batteryDir", NULL); if( saveDir[0] == '.' ) { // handle as relative path char baseDir[MAX_PATH+1];