> Can somebody who understands or regularly uses windows please 
> look into it for me.

It seems like changing 
nByte = GetFullPathNameW(zWide, 0, 0, &zNotUsedW) + 1;
to 
nByte = GetFullPathNameW(zWide, 0, 0, &zNotUsedW) + 3;
corrects the problem.

According to documentation even that + 1 isn't necessary, and actually without 
it and with longer file name the call does't return an error and everything 
work as expected. Error isn't returned even with 1-letter file, but +3 is 
required in my computer to make it work.

Wiktor Adamski


----------------------------------------------------------------------
Lewa kasa! Zobacz >> http://link.interia.pl/f19e2


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to