Fix a problem spotted by Dmitry and another one stopping correctly

formatted lnk files from being generated.
This commit is contained in:
Mike McCormack 2005-11-08 10:55:15 +00:00 committed by Alexandre Julliard
parent c51e9964a3
commit c189912cbd
1 changed files with 2 additions and 2 deletions

View File

@ -1019,7 +1019,7 @@ static EXP_DARWIN_LINK* shelllink_build_darwinid( LPCWSTR string, DWORD magic )
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( IStream* stm, LPCWSTR string, DWORD ma
buffer = shelllink_build_darwinid( string, magic );
return IStream_Write( stm, &buffer, buffer->dbh.cbSize, &count );
return IStream_Write( stm, buffer, buffer->dbh.cbSize, &count );
}
/************************************************************************