diff --git a/include/heap.h b/include/heap.h index 540b14f3faeb208e6bcf3055a51910b5ea473228..e42491c4582088e3899a07462504007dc2b313e5 100644 --- a/include/heap.h +++ b/include/heap.h @@ -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 ) {