Skip to content

Commit

Permalink
Fixed bug with ioctlwbufget for TSE as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Mar 14, 2023
1 parent e89373a commit 8144d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SamTSE/Sources/amp11lib/binfile/binfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ binfilepos binfile::rawioctl(intm code, void *buf, binfilepos len)
case ioctlrbufget: return buflen-bufpos;
case ioctlwbufset: return (mode&modeseek)?setbuffer(len):setwbuffer(len);
case ioctlwbufgetlen: return (mode&modeseek)?bufmax:wbufmax;
case ioctlwbufget: return (mode&modeseek)?bufpos:bufpos;
case ioctlwbufget: return (mode&modeseek)?bufpos:wbufpos;
case ioctlrflush: return invalidatebuffer(0);
case ioctlrflushforce: return invalidatebuffer(1);
case ioctlrcancel: return invalidatebuffer(2);
Expand Down

0 comments on commit 8144d1d

Please sign in to comment.