Index: /trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
===================================================================
--- /trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp	(revision 23892)
+++ /trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp	(revision 23893)
@@ -207,5 +207,5 @@
 VBGLR3DECL(int) VbglR3GetAdditionsVersion(char **ppszVer, char **ppszRev)
 {
-    int rc;
+    int rc = VINF_SUCCESS;
 #ifdef RT_OS_WINDOWS
     HKEY hKey;
@@ -214,5 +214,5 @@
     /* Check the new path first. */
     r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\VirtualBox Guest Additions", 0, KEY_READ, &hKey);
-#ifdef RT_ARCH_AMD64
+# ifdef RT_ARCH_AMD64
     if (r != ERROR_SUCCESS)
     {
@@ -220,5 +220,5 @@
         r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wow6432Node\\Sun\\VirtualBox Guest Additions", 0, KEY_READ, &hKey);
     }
-#endif
+# endif
 
     /* Still no luck? Then try the old xVM paths ... */
@@ -226,5 +226,5 @@
     {
         r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\xVM VirtualBox Guest Additions", 0, KEY_READ, &hKey);
-#ifdef RT_ARCH_AMD64
+# ifdef RT_ARCH_AMD64
         if (r != ERROR_SUCCESS)
         {
@@ -232,5 +232,5 @@
             r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wow6432Node\\Sun\\xVM VirtualBox Guest Additions", 0, KEY_READ, &hKey);
         }
-#endif
+# endif
     }
 
@@ -265,5 +265,5 @@
     if (NULL != hKey)
         RegCloseKey(hKey);
-#else
+#else /* !RT_OS_WINDOWS */
     /* On non-Windows platforms just return the compile-time version string atm. */
     /* Version. */
@@ -273,5 +273,5 @@
     if (ppszRev)
         rc = RTStrAPrintf(ppszRev, "%s", VBOX_SVN_REV);
-#endif /* RT_OS_WINDOWS */
-    return rc;
-}
+#endif /* !RT_OS_WINDOWS */
+    return rc;
+}
