On Wed, 5 Apr 2000, Dmitry Timoshkov wrote:

> Michael Abd-El-Malek <[EMAIL PROTECTED]> wrote:
> >Hi,
> >I have a bug right now partly arising from our implementation of
> >GetFullPathName, which may leave a forward-slash (ie Unix-style) in its
> >returned name.
[...]
> In Windows you can have both forward and back slashes in a path name.
> Mixing them in the path is absolutely no problem and works just fine.


        True, Win32 supports both forward and backward slashes. But it
never 'produces' a forward slash in a path if it was not htere before.
        The real questions i: if there is a forward slash in the path,
would the real GetFullPath leave it in? 
        The unsuspecting application may not expect to find a forward
slash (when parsing the string to find the basename, etc.) in the path
returned by GetFullPath. And this is where the problem is. 


--
Francois Gouget         [EMAIL PROTECTED]        http://fgouget.free.fr/
 Advice is what we ask for when we already know the answer but wish we didn't
                                 -- Eric Jong

Reply via email to