ChangeSet ID: 21148 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/11/08 04:55:15
Modified files: dlls/shell32 : shelllink.c
Log message: Mike McCormack mike@codeweavers.com Fix a problem spotted by Dmitry and another one stopping correctly formatted lnk files from being generated.
Patch: http://cvs.winehq.org/patch.py?id=21148
Old revision New revision Changes Path 1.112 1.113 +2 -2 wine/dlls/shell32/shelllink.c
Index: wine/dlls/shell32/shelllink.c diff -u -p wine/dlls/shell32/shelllink.c:1.112 wine/dlls/shell32/shelllink.c:1.113 --- wine/dlls/shell32/shelllink.c:1.112 8 Nov 2005 10:55:15 -0000 +++ wine/dlls/shell32/shelllink.c 8 Nov 2005 10:55:15 -0000 @@ -1019,7 +1019,7 @@ static EXP_DARWIN_LINK* shelllink_build_ EXP_DARWIN_LINK *buffer;
buffer = LocalAlloc( LMEM_ZEROINIT, sizeof *buffer ); - buffer->dbh.cbSize = sizeof buffer; + buffer->dbh.cbSize = sizeof *buffer; buffer->dbh.dwSignature = magic; lstrcpynW( buffer->szwDarwinID, string, MAX_PATH ); WideCharToMultiByte(CP_ACP, 0, string, -1, buffer->szDarwinID, MAX_PATH, NULL, NULL ); @@ -1036,7 +1036,7 @@ static HRESULT Stream_WriteAdvertiseInfo
buffer = shelllink_build_darwinid( string, magic );
- return IStream_Write( stm, &buffer, buffer->dbh.cbSize, &count ); + return IStream_Write( stm, buffer, buffer->dbh.cbSize, &count ); }
/************************************************************************