21 Oct
2008
21 Oct
'08
8:22 p.m.
I suppose it is possible for the string to not be null-terminated if the command line ends in a backslash. I'll fix that and resend. Vincent Povirk On Tue, Oct 21, 2008 at 8:14 PM, Juan Lang <juan.lang(a)gmail.com> wrote:
Hi Vincent,
+ while (*src) + { + *dest = *src; + if (*src == '\\') + { + DWORD attrs = GetFileAttributesW(result);
It sure looks like you're calling GetFileAttributesW with a non-NULL-terminated string. I doubt this will work as you intend. --Juan