Remove the HEAP_strdupAtoW macro.
authorMatthew Davison <m.davison@virgin.net>
Thu, 23 Jan 2003 23:07:56 +0000 (23:07 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 23 Jan 2003 23:07:56 +0000 (23:07 +0000)
include/heap.h

index 540b14f3faeb208e6bcf3055a51910b5ea473228..e42491c4582088e3899a07462504007dc2b313e5 100644 (file)
 #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 )
 {