Fixed incorrect unsigned test.

This commit is contained in:
Robert Shearman 2004-12-14 11:35:12 +00:00 committed by Alexandre Julliard
parent 4056d7ef8c
commit 398a595377
1 changed files with 2 additions and 1 deletions

View File

@ -598,8 +598,9 @@ HRESULT WINAPI HGLOBALStreamImpl_Seek(
* If the file pointer ends-up after the end of the stream, the next Write operation will
* make the file larger. This is how it is documented.
*/
if (dlibMove.QuadPart < 0 && newPosition.QuadPart < -dlibMove.QuadPart) return STG_E_INVALIDFUNCTION;
newPosition.QuadPart = RtlLargeIntegerAdd(newPosition.QuadPart, dlibMove.QuadPart);
if (newPosition.QuadPart < 0) return STG_E_INVALIDFUNCTION;
if (plibNewPosition) *plibNewPosition = newPosition;
This->currentPosition = newPosition;