Changeset 23836 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Oct 16, 2009 10:36:52 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53594
- Location:
- trunk/src/VBox/Additions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxHostVersion.cpp
r23835 r23836 30 30 int VBoxCheckHostVersion () 31 31 { 32 33 34 35 36 37 38 39 32 int rc; 33 char *pszHostVersion; 34 char *pszGuestVersion; 35 rc = VbglR3HostVersionCheckForUpdate(&pszHostVersion, &pszGuestVersion); 36 if (RT_SUCCESS(rc)) 37 { 38 char szMsg[256]; /* Sizes according to MSDN. */ 39 char szTitle[64]; 40 40 41 42 43 44 45 41 /** @todo add some translation macros here */ 42 _snprintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!"); 43 _snprintf(szMsg, sizeof(szMsg), "Your guest is currently running the Guest Additions version %s. " 44 "We recommend updating to the latest version (%s) by choosing the " 45 "install option from the Devices menu.", pszGuestVersion, pszHostVersion); 46 46 47 47 rc = showBalloonTip(gInstance, gToolWindow, ID_TRAYICON, szMsg, szTitle, 5000, 0); 48 48 if (RT_FAILURE(rc)) 49 49 Log(("VBoxTray: Could not show version notifier balloon tooltip! rc = %d\n", rc)); 50 50 51 52 53 51 VbglR3GuestPropReadValueFree(pszHostVersion); 52 VbglR3GuestPropReadValueFree(pszGuestVersion); 53 } 54 54 55 55 /* If we didn't have to check for the host version then this is not an error */ -
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r23835 r23836 26 26 #include <iprt/mem.h> 27 27 #include <VBox/log.h> 28 #ifdef RT_OS_WINDOWS29 #define WIN32_LEAN_AND_MEAN30 #include <windows.h>31 #endif32 33 28 #include "VBGLR3Internal.h" 34 29 … … 233 228 { 234 229 /* Version. */ 235 dwSize = 32; 236 pszVer = (char*)RTMemAlloc(dwSize); 230 DWORD dwType; 231 DWORD dwSize = 32; 232 ppszVer = (char*)RTMemAlloc(dwSize); 237 233 rc = RegQueryValueEx(hKey, "Version", NULL, &dwType, (BYTE*)(LPCTSTR)*ppszVer, &dwSize); 238 234 /* Revision. */
Note:
See TracChangeset
for help on using the changeset viewer.