2013-06-25 Ramon Novoa <rnovoa@artica.es>

* windows/pandora_wmi.cc: When concatenating IP addresses, do not
	  output a comma unless the IP can be parsed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2013-06-25 09:53:04 +00:00
parent c49369dab8
commit c85826ec7c
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2013-06-25 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc: When concatenating IP addresses, do not
output a comma unless the IP can be parsed.
2013-06-20 Ramon Novoa <rnovoa@artica.es>
* windows/winevt.h: Added to repository. Headers for Wevtapi.dll.

View File

@ -935,10 +935,10 @@ getIPs(VARIANT *ip_array){
}
int num_ips = V_ARRAY(ip_array)->rgsabound[0].cElements;
for (i = 0;i < num_ips;i++) {
if (i > 0) {
ret += " , ";
}
if (V_VT(&pvArray[i]) == VT_BSTR) {
if (i > 0) {
ret += " , ";
}
LPSTR szStringA;
ret += Pandora_Strutils::strUnicodeToAnsi( V_BSTR(&pvArray[i]));
}