Am Donnerstag, den 16.10.2008, 18:34 +0400 schrieb Nikolay Sivov:
It isn't obvious (your patch fot ret value). Why are you hiding all codes except E_FAIL?
You seem to misread that patch. All it does is return E_FAIL instead of S_OK in the case of a short read. For clarity, the conditional statement might be written as return (hr == S_OK ? E_FAIL : hr);
Regards, Michael Karcher