Module: wine Branch: master Commit: 67c6c24b043017162f3f7f4fe2039a9c82ed7751 URL: http://source.winehq.org/git/wine.git/?a=commit;h=67c6c24b043017162f3f7f4fe2...
Author: Francois Gouget fgouget@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 --- a/dlls/shell32/shelllink.c +++ b/dlls/shell32/shelllink.c @@ -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"); + }
TRACE("OK\n");