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 posted which
returns the 'Not enough memory to allocate string of size: 165' message, and
does not make any sense.  The pointer that is passed into ppwz was
initialized to NULL prior to calling StrAllocSecure().  

I can see that when other StrXxx functions like StrAllocConcatSecure, also
call this code block they iterate through allocating a larger buffer.  But I
do not understand why a (very small value >= a very large value)
results in true, which causes StrAllocSecure to simply return without
allocating the buffer.

Thanks for your comments, I will research it more.





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/StrAllocSecure-fails-in-AlocHelper-advice-in-understanding-why-tp7600708p7600714.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to