Commit c9b588b8 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent 5dd2f1ef
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment