Re: odbccp32: Implement SQLGetPrivateProfileString ( try 2)
11 Jun
2015
11 Jun
'15
5:32 a.m.
Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> writes:
@@ -101,6 +102,21 @@ static inline WCHAR *heap_strdupAtoW(const char *str) return ret; }
+static char *WtoA(LPCWSTR wstr) +{ + int length; + char *result; + + length = WideCharToMultiByte(CP_UTF8, 0, wstr, -1, NULL, 0, NULL, NULL); + + result = HeapAlloc(GetProcessHeap(), 0, length); + + if (result) + WideCharToMultiByte(CP_UTF8, 0, wstr, -1, result, length, NULL, NULL); + + return result;
UTF-8 makes no sense here, and you shouldn't need that function in the first place. -- Alexandre Julliard julliard(a)winehq.org
3836
Age (days ago)
3836
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard