Remove the HEAP_strdupAtoW macro.

This commit is contained in:
Matthew Davison 2003-01-23 23:07:56 +00:00 committed by Alexandre Julliard
parent 60009b9a56
commit 316473d239
1 changed files with 1 additions and 13 deletions

View File

@ -27,19 +27,7 @@
#include "winnls.h"
/* strdup macros */
/* DO NOT USE THEM!! they will go away soon */
inline static LPWSTR HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str )
{
LPWSTR ret;
INT len;
if (!str) return NULL;
len = MultiByteToWideChar( CP_ACP, 0, str, -1, NULL, 0 );
ret = HeapAlloc( heap, flags, len * sizeof(WCHAR) );
if (ret) MultiByteToWideChar( CP_ACP, 0, str, -1, ret, len );
return ret;
}
/* DO NOT USE IT!! it will go away soon */
inline static LPSTR HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str )
{