Skip to content
Snippets Groups Projects
Commit 316473d2 authored by Matthew Davison's avatar Matthew Davison Committed by Alexandre Julliard
Browse files

Remove the HEAP_strdupAtoW macro.

parent 60009b9a
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment