diff options
author | Jim Carroll <thecarrolls@jiminger.com> | 2011-06-26 10:00:44 -0400 |
---|---|---|
committer | Jim Carroll <thecarrolls@jiminger.com> | 2011-06-26 10:06:22 -0400 |
commit | 5495bf571d81d41a55007961a0080e5950de7157 (patch) | |
tree | 076daaa892858905b9cd556e151892f271e8e95a /lib/UnrarXLib/extract.cpp | |
parent | 090e664d5bb8205bb382cf0f14682afd992e0e29 (diff) |
Fixed the Unrar code broken by the threading refactor.
In several places in the rar code the new threading mechanisms were not used in a "functionally equivalent" manner. In five places the original code checked for a timeout using a "!= WAIT_OBJECT_0" which was interpreted as checking for a signaled state as if the "!" wasn't there. This commit fixes that problem.
Diffstat (limited to 'lib/UnrarXLib/extract.cpp')
-rw-r--r-- | lib/UnrarXLib/extract.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/UnrarXLib/extract.cpp b/lib/UnrarXLib/extract.cpp index 74a795b3cd..8206b187a9 100644 --- a/lib/UnrarXLib/extract.cpp +++ b/lib/UnrarXLib/extract.cpp @@ -867,7 +867,7 @@ void CmdExtract::UnstoreFile(ComprDataIO &DataIO,Int64 DestUnpSize) continue; DataIO.hBufferFilled->Reset(); DataIO.hBufferEmpty->Set(); - while (DataIO.hBufferFilled->WaitMSec(1)) + while (! DataIO.hBufferFilled->WaitMSec(1)) if (DataIO.hQuit->WaitMSec(1)) return; } |