mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 457040 - WinCE RegOpenKeyExA causes compiler error. patch by wolfe, r=bz
This commit is contained in:
parent
ad98bf633e
commit
6ef51a2d2a
@ -177,8 +177,11 @@ nsresult nsOSHelperAppService::OSProtocolHandlerExists(const char * aProtocolSch
|
||||
#endif
|
||||
|
||||
HKEY hKey;
|
||||
LONG err = ::RegOpenKeyExA(HKEY_CLASSES_ROOT, aProtocolScheme, 0,
|
||||
KEY_QUERY_VALUE, &hKey);
|
||||
LONG err = ::RegOpenKeyExW(HKEY_CLASSES_ROOT,
|
||||
NS_ConvertASCIItoUTF16(aProtocolScheme).get(),
|
||||
0,
|
||||
KEY_QUERY_VALUE,
|
||||
&hKey);
|
||||
if (err == ERROR_SUCCESS)
|
||||
{
|
||||
err = ::RegQueryValueExW(hKey, L"URL Protocol", NULL, NULL, NULL, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user