wxwidget test

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@594 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee
2008-09-21 13:13:20 +00:00
parent 0f4d04f4fb
commit b6407396d8
3 changed files with 241 additions and 3 deletions

View File

@ -704,6 +704,7 @@ static wxString wxCreateTempImpl(
WXFILEARGS(wxFile *fileTemp, wxFFile *ffileTemp),
bool *deleteOnClose = NULL)
{
static int pid = -1;
#if wxUSE_FILE && wxUSE_FFILE
wxASSERT(fileTemp == NULL || ffileTemp == NULL);
#endif
@ -822,7 +823,11 @@ static wxString wxCreateTempImpl(
#else // !HAVE_MKTEMP (includes __DOS__)
// generate the unique file name ourselves
#if !defined(__DOS__) && !defined(__PALMOS__) && (!defined(__MWERKS__) || defined(__DARWIN__) )
path << (unsigned int)getpid();
if(pid < 0)
pid = getpid();
path << (unsigned int)pid;
#endif
wxString pathTry;