Index: /trunk/src/VBox/Main/src-client/win/dllmain.cpp
===================================================================
--- /trunk/src/VBox/Main/src-client/win/dllmain.cpp	(revision 48350)
+++ /trunk/src/VBox/Main/src-client/win/dllmain.cpp	(revision 48351)
@@ -223,9 +223,9 @@
             char szProgId[64];
             cbValue = sizeof(szProgId) - 1;
-            rc = RegQueryValueExA(hkeyClsId, NULL, NULL, NULL, (PBYTE)&szProgId[0], &cbValue);
+            rc = RegQueryValueExA(hkeyIfProgId, NULL, NULL, NULL, (PBYTE)&szProgId[0], &cbValue);
             if (rc != ERROR_SUCCESS)
                 cbValue = 0;
             szProgId[cbValue] = '\0';
-            RegCloseKey(hkeyClsId);
+            RegCloseKey(hkeyIfProgId);
             if (strnicmp(szProgId, RT_STR_TUPLE("VirtualBox.")))
                 continue;
@@ -240,5 +240,5 @@
         }
 
-        RegCloseKey(hkeyClassesRoot);
+        RegCloseKey(hkeyClsId);
     }
 }
