- Timestamp:
- Oct 23, 2009 11:40:50 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibHostVersion.cpp
r23876 r24023 70 70 * 71 71 * @param u32ClientId The client id returned by VbglR3InfoSvcConnect(). 72 * @param bUpdate Receives pointer to boolean flag indicating whether 72 * @param bUpdate Receives pointer to boolean flag indicating whether 73 73 an update was found or not. 74 74 * @param ppszHostVersion Receives pointer of allocated version string. … … 86 86 Assert(ppszGuestVersion); 87 87 88 /* We assume we have an update initially. 88 /* We assume we have an update initially. 89 89 Every block down below is allowed to veto */ 90 90 *bUpdate = true; … … 110 110 } 111 111 VbglR3GuestPropReadValueFree(pszCheckHostVersion); 112 } 113 112 } 113 114 /* Collect all needed information */ 114 115 /* Make sure we only notify the user once by comparing the host version with 115 116 * the last checked host version (if any) */ … … 143 144 } 144 145 146 /* Look up guest version */ 145 147 if (RT_SUCCESS(rc)) 146 148 { 147 /* Look up guest version */148 149 rc = VbglR3GetAdditionsVersion(ppszGuestVersion, NULL /* Revision not needed here */); 149 } 150 } 151 150 if (RT_FAILURE(rc)) 151 LogFlow(("Could not read VBox guest version! rc = %d\n", rc)); 152 } 153 } 154 152 155 /* Do the actual version comparison (if needed, see block(s) above) */ 153 156 if (RT_SUCCESS(rc) && *bUpdate) … … 202 205 { 203 206 Assert(u32ClientId > 0); 204 Assert(pszVer); 207 Assert(pszVer); 205 208 return VbglR3GuestPropWriteValue(u32ClientId, "/VirtualBox/GuestAdd/HostVerLastChecked", pszVer); 206 209 }
Note:
See TracChangeset
for help on using the changeset viewer.