Hong Xu wrote:

> The comment in function vim_tempname says: "GetTempPath() failed, use 
> current
> dir". It use "szTempFile[0] = NUL" to do this, which makes szTempFile an 
> empty
> string. szTempFile is going to be passed as a parameter to the function
> GetTempFileName. However, if we want to use current directory, we should
> szTempFile to ".", but not NULL.
> 
> See the Parameters->lpPathName part on the following link:
> http://msdn.microsoft.com/en-us/library/aa364991%28v=VS.85%29.aspx

Thanks, makes sense.  It doesn't say what happens with an empty
directory, it might also work.  But following the docs is better.

-- 
Some of the well know MS-Windows errors:
        ETIME           Wrong time, wait a little while
        ECRASH          Try again...
        EDETECT         Unable to detect errors
        EOVER           You lost!  Play another game?
        ENOCLUE         Eh, what did you want?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui