git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@872 a31d4220-a93d-0410-bf67-fe4944624d44

This commit is contained in:
squall-leonhart 2009-03-24 05:30:20 +00:00
parent 9152c67444
commit 5761233dc9
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#include "stdafx.h"
#include "MainWnd.h"
#include <shlwapi.h>
#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];