mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
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:
parent
4a773e9a66
commit
1d4082da2a
@ -1012,7 +1012,6 @@ bool ReadSetting()
|
||||
|
||||
{
|
||||
s32 dnsAuto; // DNS_AUTO
|
||||
dnsAuto = configfileLoader.ReadAsInteger(L"DNS_AUTO");
|
||||
if(configfileLoader.ReadAsChar(L"DNS_AUTO") == NULL)
|
||||
{
|
||||
COMMON_LOGGER("DNS_AUTO: is missing\n");
|
||||
@ -1020,7 +1019,7 @@ bool ReadSetting()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dnsAuto == 1)
|
||||
dnsAuto = configfileLoader.ReadAsInteger(L"DNS_AUTO"); if (dnsAuto == 1)
|
||||
{
|
||||
networkSetting.ip.autoDNSSetting = true;
|
||||
}
|
||||
@ -1090,7 +1089,7 @@ bool ReadSetting()
|
||||
|
||||
{
|
||||
const char* ntpServerName = configfileLoader.ReadAsChar(L"NTPSRV"); // NTPサーバ
|
||||
if(s_NtpServerName == NULL)
|
||||
if(ntpServerName == NULL)
|
||||
{
|
||||
COMMON_LOGGER("NTPSRV: is missing\n");
|
||||
retval = false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user