>> 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.

Not a solution to the problem, but a small optimization suggestion:

According to MSDN (http://msdn2.microsoft.com/en-us/library/aa364963.aspx) 
there is no need for zNotUsed and zNotUsedW. Both can be replaced by NULL.

Here is the relevant quote:

lpFilePart 
[out] A pointer to a buffer that receives the address (in lpBuffer) of the 
final file name component in the path. Specify NULL if you do not need to 
receive this information. 


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

Reply via email to