From 316473d239a45b955aa0a6c85d133d227a9b8648 Mon Sep 17 00:00:00 2001 From: Matthew Davison Date: Thu, 23 Jan 2003 23:07:56 +0000 Subject: [PATCH] Remove the HEAP_strdupAtoW macro. --- include/heap.h | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/include/heap.h b/include/heap.h index 540b14f3fae..e42491c4582 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 ) {