Commit c189912c authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix a problem spotted by Dmitry and another one stopping correctly

formatted lnk files from being generated.
parent c51e9964
...@@ -1019,7 +1019,7 @@ static EXP_DARWIN_LINK* shelllink_build_darwinid( LPCWSTR string, DWORD magic ) ...@@ -1019,7 +1019,7 @@ static EXP_DARWIN_LINK* shelllink_build_darwinid( LPCWSTR string, DWORD magic )
EXP_DARWIN_LINK *buffer; EXP_DARWIN_LINK *buffer;
buffer = LocalAlloc( LMEM_ZEROINIT, sizeof *buffer ); buffer = LocalAlloc( LMEM_ZEROINIT, sizeof *buffer );
buffer->dbh.cbSize = sizeof buffer; buffer->dbh.cbSize = sizeof *buffer;
buffer->dbh.dwSignature = magic; buffer->dbh.dwSignature = magic;
lstrcpynW( buffer->szwDarwinID, string, MAX_PATH ); lstrcpynW( buffer->szwDarwinID, string, MAX_PATH );
WideCharToMultiByte(CP_ACP, 0, string, -1, buffer->szDarwinID, MAX_PATH, NULL, NULL ); 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 ...@@ -1036,7 +1036,7 @@ static HRESULT Stream_WriteAdvertiseInfo( IStream* stm, LPCWSTR string, DWORD ma
buffer = shelllink_build_darwinid( string, magic ); buffer = shelllink_build_darwinid( string, magic );
return IStream_Write( stm, &buffer, buffer->dbh.cbSize, &count ); return IStream_Write( stm, buffer, buffer->dbh.cbSize, &count );
} }
/************************************************************************ /************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment