diff options
author | Fritz Elfert <felfert@to.com> | 2000-08-27 23:24:17 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2000-08-27 23:24:17 +0000 |
commit | 660caf830d3aadb6eb5dbad5fe37dbea7dcb380a (patch) | |
tree | 5286661a80c86172dd0d5b8520b37b08d13a3593 /lib/rpcs32.cc | |
parent | f1437f9b53cc63a7d40009a1d7c038bb9514e46e (diff) | |
download | plptools-660caf830d3aadb6eb5dbad5fe37dbea7dcb380a.tar.gz plptools-660caf830d3aadb6eb5dbad5fe37dbea7dcb380a.tar.bz2 plptools-660caf830d3aadb6eb5dbad5fe37dbea7dcb380a.zip |
Bugfix: QUERY_DRIVE returns status as last byte, not first.
Diffstat (limited to 'lib/rpcs32.cc')
-rw-r--r-- | lib/rpcs32.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rpcs32.cc b/lib/rpcs32.cc index 95dfd6f..85dd415 100644 --- a/lib/rpcs32.cc +++ b/lib/rpcs32.cc @@ -56,7 +56,7 @@ queryDrive(char drive, bufferArray &ret) a.addByte(drive); if (!sendCommand(rpcs::QUERY_DRIVE, a)) return rfsv::E_PSI_FILE_DISC; - if ((res = getResponse(a)) != rfsv::E_PSI_GEN_NONE) + if ((res = getResponse(a, false)) != rfsv::E_PSI_GEN_NONE) return res; int l = a.getLen(); ret.clear(); @@ -98,7 +98,7 @@ getCmdLine(const char *process, bufferStore &ret) a.addStringT(process); if (!sendCommand(rpcs::GET_CMDLINE, a)) return rfsv::E_PSI_FILE_DISC; - res = getResponse(a); + res = getResponse(a, true); ret = a; return res; } @@ -111,7 +111,7 @@ getMachineInfo(machineInfo &mi) if (!sendCommand(rpcs::GET_MACHINE_INFO, a)) return rfsv::E_PSI_FILE_DISC; - if ((res = getResponse(a)) != rfsv::E_PSI_GEN_NONE) + if ((res = getResponse(a, true)) != rfsv::E_PSI_GEN_NONE) return res; if (a.getLen() != 256) return rfsv::E_PSI_GEN_FAIL; @@ -178,7 +178,7 @@ configOpen(void) if (!sendCommand(rpcs::CONFIG_OPEN, a)) return rfsv::E_PSI_FILE_DISC; - res = getResponse(a); + res = getResponse(a, true); cout << "co: r=" << res << " a=" << a << endl; hhh = a.getDWord(0); return rfsv::E_PSI_GEN_NONE; @@ -198,7 +198,7 @@ configRead(void) a.addDWord(hhh); if (!sendCommand(rpcs::CONFIG_READ, a)) return rfsv::E_PSI_FILE_DISC; - if ((res = getResponse(a)) != rfsv::E_PSI_GEN_NONE) + if ((res = getResponse(a, true)) != rfsv::E_PSI_GEN_NONE) return res; l = a.getLen(); cout << "cr: " << l << endl; |