"Shachar Shemesh" wine-devel@sun.consumer.org.il wrote:
- LPWSTR lpText = (LPWSTR)lParam;
- lpText[0] = '\0';
Shouldn't it be
- LPWSTR lpText = (LPWSTR)lParam;
- lpText[0] = L'\0';
?
Due to a difference between *nix and win32 unicode character sizes (4 vs. 2 bytes), personally I prefer to avoid such an ambiguity and simply use plain 0 instead. But '\0' will work just fine.
IMO Wine should not use L prefix at all and explicitly convert ANSI to unicode when it's needed or use explicit unicode character constants: static const WCHAR fooW[] = {'f','o','o',0}; but never L"foo".