Changeset 51259 in vbox
- Timestamp:
- May 15, 2014 2:44:19 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r50996 r51259 1102 1102 } 1103 1103 /* host drive? */ 1104 else if (!RTStrNICmp(ValueUnion.psz, "host:", 5))1104 else if (!RTStrNICmp(ValueUnion.psz, RT_STR_TUPLE("host:"))) 1105 1105 { 1106 1106 ComPtr<IHost> host; … … 1180 1180 } 1181 1181 /* host drive? */ 1182 else if (!RTStrNICmp(ValueUnion.psz, "host:", 5))1182 else if (!RTStrNICmp(ValueUnion.psz, RT_STR_TUPLE("host:"))) 1183 1183 { 1184 1184 ComPtr<IHost> host; … … 1703 1703 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1704 1704 if (RTStrCmp(ValueUnion.psz, "default") == 0) 1705 {1706 1705 aliasMode = 0; 1707 }1708 1706 else 1709 1707 { 1710 1708 char *token = (char *)ValueUnion.psz; 1711 while (token)1709 while (token) 1712 1710 { 1713 if (RTStrNCmp(token, "log", 3) == 0)1714 aliasMode |= 0x1;1715 else if (RTStrNCmp(token, "proxyonly", 9) == 0)1716 aliasMode |= 0x2;1717 else if (RTStrNCmp(token, "sameports", 9) == 0)1718 aliasMode |= 0x4;1711 if (RTStrNCmp(token, RT_STR_TUPLE("log")) == 0) 1712 aliasMode |= NATAliasMode_AliasLog; 1713 else if (RTStrNCmp(token, RT_STR_TUPLE("proxyonly")) == 0) 1714 aliasMode |= NATAliasMode_AliasProxyOnly; 1715 else if (RTStrNCmp(token, RT_STR_TUPLE("sameports")) == 0) 1716 aliasMode |= NATAliasMode_AliasUseSamePorts; 1719 1717 token = RTStrStr(token, ","); 1720 1718 if (token == NULL) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r49190 r51259 552 552 // find the medium given 553 553 /* host drive? */ 554 if (!RTStrNICmp(pszMedium, "host:", 5))554 if (!RTStrNICmp(pszMedium, RT_STR_TUPLE("host:"))) 555 555 { 556 556 ComPtr<IHost> host;
Note:
See TracChangeset
for help on using the changeset viewer.