mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
wxwidget test
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@594 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
7
Externals/wxWidgets/src/common/filename.cpp
vendored
7
Externals/wxWidgets/src/common/filename.cpp
vendored
@ -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;
|
||||
|
Reference in New Issue
Block a user