Changeset 63158 in vbox for trunk/src/VBox
- Timestamp:
- Aug 8, 2016 12:23:27 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp
r59842 r63158 840 840 int rc; 841 841 842 uint32_t uProto 843 uint32_t uVerAdditions = 0;844 uint32_t uRevAdditions = 0;842 uint32_t uProto = 0; 843 uint32_t uVerAdditions; 844 uint32_t uRevAdditions; 845 845 if ( m_pGuest 846 846 && (uVerAdditions = m_pGuest->i_getAdditionsVersion()) > 0 847 847 && (uRevAdditions = m_pGuest->i_getAdditionsRevision()) > 0) 848 848 { 849 #ifdef DEBUG 850 # if 0 849 #if 0 && defined(DEBUG) 851 850 /* Hardcode the to-used protocol version; nice for testing side effects. */ 852 uProto = 3; 851 if (true) 852 uProto = 3; 853 else 854 #endif 855 if (uVerAdditions >= VBOX_FULL_VERSION_MAKE(5, 0, 0)) 856 { 857 /** @todo 858 * r=bird: This is just too bad for anyone using an OSE additions build... 859 */ 860 if (uRevAdditions >= 103344) /* Since r103344: Protocol v3. */ 861 uProto = 3; 862 else 863 uProto = 2; /* VBox 5.0.0 - 5.0.8: Protocol v2. */ 864 } 865 /* else: uProto: 0 */ 866 867 LogFlowFunc(("uVerAdditions=%RU32 (%RU32.%RU32.%RU32), r%RU32\n", 868 uVerAdditions, VBOX_FULL_VERSION_GET_MAJOR(uVerAdditions), VBOX_FULL_VERSION_GET_MINOR(uVerAdditions), 869 VBOX_FULL_VERSION_GET_BUILD(uVerAdditions), uRevAdditions)); 853 870 rc = VINF_SUCCESS; 854 # endif855 #endif856 if (!uProto) /* Protocol not set yet? */857 {858 if (uVerAdditions >= VBOX_FULL_VERSION_MAKE(5, 0, 0))859 {860 if (uRevAdditions >= 103344) /* Since r103344: Protocol v3. */861 {862 uProto = 3;863 }864 else865 uProto = 2; /* VBox 5.0.0 - 5.0.8: Protocol v2. */866 }867 868 LogFlowFunc(("uVerAdditions=%RU32 (%RU32.%RU32.%RU32), r%RU32\n",869 uVerAdditions, VBOX_FULL_VERSION_GET_MAJOR(uVerAdditions), VBOX_FULL_VERSION_GET_MINOR(uVerAdditions),870 VBOX_FULL_VERSION_GET_BUILD(uVerAdditions), uRevAdditions));871 rc = VINF_SUCCESS;872 }873 871 } 874 872 else
Note:
See TracChangeset
for help on using the changeset viewer.