mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[shell32]
- Fix some compilation issues with msc svn path=/branches/cmake-bringup/; revision=50708
This commit is contained in:
parent
0020a48e12
commit
6fb6b3dc44
1 changed files with 6 additions and 2 deletions
|
@ -187,9 +187,13 @@ static HRESULT ShellLink_UpdatePath(LPCWSTR sPathRel, LPCWSTR path, LPCWSTR sWor
|
|||
/* strdup on the process heap */
|
||||
static LPWSTR __inline HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str)
|
||||
{
|
||||
INT len;
|
||||
LPWSTR p;
|
||||
|
||||
assert(str);
|
||||
INT len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
|
||||
LPWSTR p = HeapAlloc( heap, flags, len*sizeof (WCHAR) );
|
||||
|
||||
len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
|
||||
p = HeapAlloc( heap, flags, len*sizeof (WCHAR) );
|
||||
if( !p )
|
||||
return p;
|
||||
MultiByteToWideChar( CP_ACP, 0, str, -1, p, len );
|
||||
|
|
Loading…
Reference in a new issue