inetcomm: Add default case to sub_stream_Seek to avoid using uninitialised memory.

This commit is contained in:
Rob Shearman 2008-02-29 11:25:13 +00:00 committed by Alexandre Julliard
parent 5dd2f1efa8
commit c9b588b88b
1 changed files with 2 additions and 0 deletions

View File

@ -1225,6 +1225,8 @@ static HRESULT WINAPI sub_stream_Seek(
case STREAM_SEEK_END:
new_pos.QuadPart = This->length.QuadPart + dlibMove.QuadPart;
break;
default:
return STG_E_INVALIDFUNCTION;
}
if(new_pos.QuadPart < 0) new_pos.QuadPart = 0;