Fix a problem spotted by Dmitry and another one stopping correctly
formatted lnk files from being generated.
This commit is contained in:
parent
c51e9964a3
commit
c189912cbd
|
@ -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 );
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
|
|
Loading…
Reference in New Issue