Re: _SHExpandEnvironmentStrings() should return input string if no % found to expand?

2004-10-24 Thread Hans Leidekker
On Sunday 24 October 2004 01:35, James Hawkins wrote: The reason why I said to ignore this patch is because there has to be both an A and a W version of it. I'm pretty sure that this cast: No, I believe this is an exception. I assume that the spec file is correct in that there are no A and

Re: _SHExpandEnvironmentStrings() should return input string if no % found to expand?

2004-10-24 Thread James Hawkins
No, it will work. The cast probably there because the original author didn't want to write two functions. Instead he added a bool to the internal function that specifies whether the buffer is unicode or not. The cast is then needed to keep the compiler happy. The fact that the structures have