PATCH: avoid warning in dlls/ole32/stg_stream.c
Gerald Pfeifer
gerald at pfeifer.com
Tue Sep 12 16:37:14 CDT 2006
A simple one, to keep the build clean and cause reproducible results
when we're building with assert() disabled.
Gerald
ChangeLog:
Silence a compiler warning about unused variable in StgStreamImpl_Write().
Index: stg_stream.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/stg_stream.c,v
retrieving revision 1.37
diff -u -3 -p -r1.37 stg_stream.c
--- stg_stream.c 11 Sep 2006 11:06:06 -0000 1.37
+++ stg_stream.c 12 Sep 2006 11:20:38 -0000
@@ -440,9 +440,12 @@ static HRESULT WINAPI StgStreamImpl_Writ
pcbWritten);
}
else
+ {
/* this should never happen because the IStream_SetSize call above will
* make sure a big or small block chain is created */
assert(FALSE);
+ res = 0;
+ }
/*
* Advance the position pointer for the number of positions written.
More information about the wine-patches
mailing list