>> Can somebody who understands or regularly uses windows please
>> look into it for me.
>
>It seems like changing
>nByte = GetFullPathNameW(zWide, 0, 0, ) + 1;
>to
>nByte = GetFullPathNameW(zWide, 0, 0, ) + 3;
>corrects the problem.
Not a solution to the problem, but a small optimization
> Can somebody who understands or regularly uses windows please
> look into it for me.
It seems like changing
nByte = GetFullPathNameW(zWide, 0, 0, ) + 1;
to
nByte = GetFullPathNameW(zWide, 0, 0, ) + 3;
corrects the problem.
According to documentation even that + 1 isn't necessary, and
2 matches
Mail list logo