ReadAsIntegerの前にReadAsCharする

NTPSRVの存在確認ができていなかったのを修正

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@51 385bec56-5757-e545-9c3a-d8741f4650f1
This commit is contained in:
N2614 2011-02-14 09:25:30 +00:00
parent 4a773e9a66
commit 1d4082da2a

View File

@ -1012,7 +1012,6 @@ bool ReadSetting()
{ {
s32 dnsAuto; // DNS_AUTO s32 dnsAuto; // DNS_AUTO
dnsAuto = configfileLoader.ReadAsInteger(L"DNS_AUTO");
if(configfileLoader.ReadAsChar(L"DNS_AUTO") == NULL) if(configfileLoader.ReadAsChar(L"DNS_AUTO") == NULL)
{ {
COMMON_LOGGER("DNS_AUTO: is missing\n"); COMMON_LOGGER("DNS_AUTO: is missing\n");
@ -1020,7 +1019,7 @@ bool ReadSetting()
} }
else else
{ {
if (dnsAuto == 1) dnsAuto = configfileLoader.ReadAsInteger(L"DNS_AUTO"); if (dnsAuto == 1)
{ {
networkSetting.ip.autoDNSSetting = true; networkSetting.ip.autoDNSSetting = true;
} }
@ -1090,7 +1089,7 @@ bool ReadSetting()
{ {
const char* ntpServerName = configfileLoader.ReadAsChar(L"NTPSRV"); // NTPサーバ const char* ntpServerName = configfileLoader.ReadAsChar(L"NTPSRV"); // NTPサーバ
if(s_NtpServerName == NULL) if(ntpServerName == NULL)
{ {
COMMON_LOGGER("NTPSRV: is missing\n"); COMMON_LOGGER("NTPSRV: is missing\n");
retval = false; retval = false;