>If FILE_name_AtoW fails, the function fails, so the return value should be FALSE, shouldn't it ?
TRUE means that current directory '.' should be added to PATH. FALSE is returned if a special environment variable NoDefaultCurrentDirectoryInExePath is set. Of course, default sane value should be TRUE. Details at http://msdn2.microsoft.com/en-us/library/ms684269.aspx. -- Kirill