OpenWebBrowser Win98 bug (and fix)
by Kevin Ryan · in Torque Game Engine · 04/30/2006 (11:32 am) · 0 replies
OpenWebBrowser was working fine on my XP machine, but not on my Win98 machine. Got a "Failed to open the HKCR\\http registry key!!" error message on Win98. I made a small change right near the start of openWebBrowser:
Win98 problem code:
Win98 working code:
The only change was removing the double slash before http. You can find openWebBrowser in winWindow.cc
Win98 problem code:
if ( RegOpenKeyEx( HKEY_CLASSES_ROOT, dT("\http\shell\open\command"), 0, KEY_QUERY_VALUE, ®Key ) != ERROR_SUCCESS )Win98 working code:
if ( RegOpenKeyEx( HKEY_CLASSES_ROOT, dT("http\shell\open\command"), 0, KEY_QUERY_VALUE, ®Key ) != ERROR_SUCCESS )The only change was removing the double slash before http. You can find openWebBrowser in winWindow.cc