OSDN Git Service

バグ情報送信機能追加 v0.101
authorqwerty2501 <qwerty2501users.sourceforge.jp>
Sat, 10 Mar 2012 13:47:23 +0000 (22:47 +0900)
committerqwerty2501 <qwerty2501users.sourceforge.jp>
Sat, 10 Mar 2012 13:47:23 +0000 (22:47 +0900)
nlite.suo
nlite/nlite_property.cpp

index 74e19a0..112c5d2 100644 (file)
Binary files a/nlite.suo and b/nlite.suo differ
index 2c499d6..40586ec 100644 (file)
@@ -45,7 +45,8 @@ namespace nlite{
        static const LPCTSTR bt_chrome = TEXT("chrome");
        static const LPCTSTR bt_firefox = TEXT("firefox");
        static const LPCTSTR bt_iecm = TEXT("iecm");
-       
+       static const LPCTSTR sectionName = TEXT("property");
+       static const LPCTSTR keyName = TEXT("dir");
 
 
 
@@ -340,8 +341,6 @@ UINT_PTR CCommentViewProperty::GetHeaderOrderArrayLength()const{
                
 
                TCHAR propertyBuf[_MAX_PATH];
-               LPCTSTR sectionName = TEXT("property");
-               LPCTSTR keyName = TEXT("dir");
                ::GetPrivateProfileString(sectionName,keyName,TEXT(""),propertyBuf,ARRAY_LENGTH(propertyBuf),iniFile);
 
                if((_tcslen(propertyBuf) == 0) || !((PathFileExists(propertyBuf) &&  !::PathIsDirectory( propertyBuf )))){
@@ -375,10 +374,6 @@ UINT_PTR CCommentViewProperty::GetHeaderOrderArrayLength()const{
                iniFile += iniFileName;
                SurelyCreate(iniFile,TRUE);
                
-
-               TCHAR propertyBuf[_MAX_PATH];
-               LPCTSTR sectionName = TEXT("property");
-               LPCTSTR keyName = TEXT("dir");
                ::WritePrivateProfileString(sectionName,keyName,this->propertySaveFolderPath,iniFile);
 
        }