Martin Dubé
-
2012-06-26
Using tmpnam() function on win32 returns a filename to be used in the current directory. Even worst, since it begins with a backslash, the file is created on the root of the current drive. More explanations here:
http://www.ogre3d.org/forums/viewtopic.php?f=2&t=70625
Fix is to use _tempnam() function when platform is win32. This will generate a proper file name at the proper location.