Re: WMI question

Stoyan Damov <[email protected]>
Newsgroups gmane.comp.windows.off-topic
Message-ID <[email protected]>
John, it's not the pointer incrementation that causes the AV, it's the
dereferencing of the pointer (which is most probably 0). Can you paste some
code?

On Fri, Dec 3, 2010 at 11:07 PM, Kim Gräsman <[email protected]> wrote:

>
>
> Hi John,
>
> On Fri, Dec 3, 2010 at 21:49, John Smith <[email protected]> wrote:
>>
>>
>> I'm wondering if the information I am querying for (i.e. Win32_AccountSID)
>> in this case, is returning information that is not what the wcslen( ) is
>> expecting... Why else would the 'eos' pointer incrementation cause the
>> access violation?  Any ideas?
>>
>
> Yeah, that's probably it.
>
> wcslen is a function to get the length of a zero-terminated wide-character
> string, usually of type "const wchar_t*" or "LPCWSTR" -- what are you
> passing to it?
>
> - Kim
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.