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 <[EMAIL PROTECTED]> 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
>
>
>
