Changeset 67728 in vbox
- Timestamp:
- Jun 30, 2017 12:27:58 PM (7 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/SystemPropertiesImpl.h
r62485 r67728 55 55 int i_loadVDPlugin(const char *pszPluginLibrary); 56 56 int i_unloadVDPlugin(const char *pszPluginLibrary); 57 58 HRESULT i_getDefaultAdditionsISO(com::Utf8Str &aDefaultAdditionsISO); 57 59 58 60 private: -
trunk/src/VBox/Main/src-server/SystemPropertiesImpl.cpp
r65103 r67728 928 928 HRESULT SystemProperties::getDefaultAdditionsISO(com::Utf8Str &aDefaultAdditionsISO) 929 929 { 930 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 931 932 if (m->strDefaultAdditionsISO.isEmpty()) 933 { 934 /* no guest additions, check if it showed up in the mean time */ 935 alock.release(); 936 { 937 AutoWriteLock wlock(this COMMA_LOCKVAL_SRC_POS); 938 ErrorInfoKeeper eik; 939 (void)setDefaultAdditionsISO(""); 940 } 941 alock.acquire(); 942 } 943 aDefaultAdditionsISO = m->strDefaultAdditionsISO; 944 945 return S_OK; 930 return i_getDefaultAdditionsISO(aDefaultAdditionsISO); 946 931 } 947 932 … … 1148 1133 { 1149 1134 return VDPluginUnloadFromFilename(pszPluginLibrary); 1135 } 1136 1137 /** 1138 * Internally usable version of getDefaultAdditionsISO. 1139 */ 1140 HRESULT SystemProperties::i_getDefaultAdditionsISO(com::Utf8Str &aDefaultAdditionsISO) 1141 { 1142 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1143 if (m->strDefaultAdditionsISO.isEmpty()) 1144 { 1145 /* no guest additions, check if it showed up in the mean time */ 1146 alock.release(); 1147 AutoWriteLock wlock(this COMMA_LOCKVAL_SRC_POS); 1148 if (m->strDefaultAdditionsISO.isEmpty()) 1149 { 1150 ErrorInfoKeeper eik; 1151 (void)setDefaultAdditionsISO(""); 1152 } 1153 alock.acquire(); 1154 } 1155 aDefaultAdditionsISO = m->strDefaultAdditionsISO; 1156 return S_OK; 1150 1157 } 1151 1158
Note:
See TracChangeset
for help on using the changeset viewer.