This commit is contained in:
zhouhuang 2025-01-13 10:18:26 +08:00
parent 1b455c7e3b
commit fe20bf1e34
2 changed files with 3 additions and 3 deletions

View File

@ -1027,7 +1027,7 @@ BOOLEAN CHostADSBFProcess::readFileID()
AdsVariable <DWORD> wFirstFileNoRecoverable {*m_turbine, ".gwFirstFileNoRecoverable"};
//vLog(LOG_DEBUG, "Read back with first value %d\n", (DWORD)wFirstFileNoRecoverable);
#else
WORD wPathInfoInvalid;
WORD wPathInfoInvalid = 0;
myAdsVariable myPathInfoInvalid {*m_turbine, ".gwPathInfoInvalid"};
if (!myPathInfoInvalid.Read(2, &wPathInfoInvalid))
{
@ -1108,7 +1108,7 @@ BOOLEAN CHostADSBFProcess::readFileID()
m_iv = (WORD)wPathInfoInvalid;
if (m_iv) {
vLog(LOG_DEBUG, "路径信息无效\n");
return FALSE;
return TRUE;
}
//当前文件夹路径名
m_currentDirNo = (DWORD)wCurrentFolderNo;

View File

@ -34,7 +34,7 @@ struct myAdsVariable {
if (!m_Route.IsConnected()) return FALSE;
uint32_t bytesRead = 0;
if (*m_Handle.get() == 0xffffffff) {
return FALSE;
return TRUE;
}
auto error = m_Route.ReadReqEx2(m_IndexGroup,
*m_Handle,