Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

fix support for slices #41

Merged
merged 1 commit into from
Dec 12, 2018
Merged

Conversation

demonix
Copy link

@demonix demonix commented May 18, 2018

Hi!
Looks like previous PR #38 breaks functionality from PR #19. String arrays, like IP addreses from Win32_NetworkAdapterConfiguration are empty now.

I've tried to understand what's wrong and found, that prop.Value() for array is nil, but prop type is VT_ARRAY, so I've changed condition to check if prop is actually VT_NULL.

It works on my machine (c), but I'm not a golang guru, so please double check, if I break something else.

@captncraig captncraig merged commit e0a55b9 into StackExchange:master Dec 12, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants