Stepping into the code posted, the cch was 165 (and in other experiments when
I increased the initialized size that I was requesting for the buffer, up to
195) , in all cases it was much less than >= MAXDWORD / sizeof(WCHAR), yet
stepping through the code in a debugger, it steps into the code poste
The log message should indicate the requested cch value.
Also note that E_OUTOFMEMORY can be returned on two different flows in the
function. Since the log message is slightly different you can tell which of
these failed.
Have you initialized your LPWSTR variable to NULL?
-
Nir Bar
Freelan
2 matches
Mail list logo