Rob Shearman : inetcomm: Add default case to sub_stream_Seek to avoid using uninitialised memory.
Alexandre Julliard
julliard at winehq.org
Fri Feb 29 06:17:11 CST 2008
Module: wine
Branch: master
Commit: c9b588b88b6eca08b69d6709116d670042a3a6b1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c9b588b88b6eca08b69d6709116d670042a3a6b1
Author: Rob Shearman <rob at codeweavers.com>
Date: Fri Feb 29 11:25:13 2008 +0000
inetcomm: Add default case to sub_stream_Seek to avoid using uninitialised memory.
---
dlls/inetcomm/mimeole.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c
index e986e7f..3ee7281 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;
More information about the wine-cvs
mailing list