|
-
September 5th, 2012, 11:21 AM
#3
Re: Variables & WMI
I'm not really up on the code he's using, but it seems that the code here probably contributes.
VARIANT vtProp;
...
QueryResult = vtProp.bstrVal;
...
VariantClear(&vtProp);
...
return QueryResult;
Looks more like he's returning a pointer to a variant that's getting cleared then going out of scope.
Last edited by GCDEF; September 5th, 2012 at 11:26 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|