This commit is contained in:
parent
b2fbc4b8a9
commit
aa84c0b486
|
@ -1,6 +1,7 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "MainWnd.h"
|
#include "MainWnd.h"
|
||||||
|
|
||||||
|
#include <shlwapi.h>
|
||||||
#include "ExportGSASnapshot.h"
|
#include "ExportGSASnapshot.h"
|
||||||
#include "FileDlg.h"
|
#include "FileDlg.h"
|
||||||
#include "GSACodeSelect.h"
|
#include "GSACodeSelect.h"
|
||||||
|
@ -488,7 +489,7 @@ void MainWnd::OnFileExportBatteryfile()
|
||||||
CString filter = winLoadFilter(IDS_FILTER_SAV);
|
CString filter = winLoadFilter(IDS_FILTER_SAV);
|
||||||
CString title = winResLoadString(IDS_SELECT_BATTERY_FILE);
|
CString title = winResLoadString(IDS_SELECT_BATTERY_FILE);
|
||||||
|
|
||||||
CString saveDir = regQueryStringValue("batteryDir", DEFAULT_BATTERY_DIR);
|
CString saveDir = regQueryStringValue("batteryDir", NULL);
|
||||||
if( saveDir[0] == '.' ) {
|
if( saveDir[0] == '.' ) {
|
||||||
// handle as relative path
|
// handle as relative path
|
||||||
char baseDir[MAX_PATH+1];
|
char baseDir[MAX_PATH+1];
|
||||||
|
|
Loading…
Reference in New Issue