bug 457040 - WinCE RegOpenKeyExA causes compiler error. patch by wolfe, r=bz

This commit is contained in:
Doug Turner 2008-09-27 13:52:58 -07:00
parent ad98bf633e
commit 6ef51a2d2a

View File

@ -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);