mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
inetcomm: Add default case to sub_stream_Seek to avoid using uninitialised memory.
This commit is contained in:
parent
5dd2f1efa8
commit
c9b588b88b
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue