Re: [WiX-users] StrAllocSecure fails in AlocHelper - advice in understanding why.

2015-06-24 Thread Phill Hogland
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

Re: [WiX-users] StrAllocSecure fails in AlocHelper - advice in understanding why.

2015-06-24 Thread Nir Bar
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