Francois Gouget : shell32: A lot of lnk files have extra data blocks at the end, although they don' t seem to matter much. So drop the corresponding ERR() to a WARN().
julliard at winehq.org
Fri Jan 11 07:20:26 CST 2008
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Fri Jan 11 09:55:32 2008 +0100
shell32: A lot of lnk files have extra data blocks at the end, although they don't seem to matter much. So drop the corresponding ERR() to a WARN().
dlls/shell32/shelllink.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c
index d19d726..c42242c 100644
@@ -924,7 +924,14 @@ static HRESULT WINAPI IPersistStream_fnLoad(
r = IStream_Read(stm, &zero, sizeof zero, &dwBytesRead);
if( FAILED( r ) || zero || dwBytesRead != sizeof zero )
- ERR("Last word was not zero\n");
+ /* Some lnk files have extra data blocks starting with a
+ * DATABLOCK_HEADER. For instance EXP_SPECIAL_FOLDER and an unknown
+ * one with a 0xa0000003 signature. However these don't seem to matter
+ * too much.
+ WARN("Last word was not zero\n");
More information about the wine-cvs