| * Copyright 1996 Alexandre Julliard |
| #include "wine/unicode.h" |
| /* DO NOT USE THEM!! they will go away soon */ |
| inline static LPWSTR HEAP_strdupAtoW( HANDLE heap, DWORD flags, LPCSTR str ) |
| 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 ); |
| inline static LPSTR HEAP_strdupWtoA( HANDLE heap, DWORD flags, LPCWSTR str ) |
| len = WideCharToMultiByte( CP_ACP, 0, str, -1, NULL, 0, NULL, NULL ); |
| ret = HeapAlloc( heap, flags, len ); |
| if(ret) WideCharToMultiByte( CP_ACP, 0, str, -1, ret, len, NULL, NULL ); |
| #endif /* __WINE_HEAP_H */ |