From c9b588b88b6eca08b69d6709116d670042a3a6b1 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 29 Feb 2008 11:25:13 +0000 Subject: [PATCH] inetcomm: Add default case to sub_stream_Seek to avoid using uninitialised memory. --- dlls/inetcomm/mimeole.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c index e986e7fa61..3ee72814dd 100644 --- a/dlls/inetcomm/mimeole.c +++ b/dlls/inetcomm/mimeole.c @@ -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;