http://bugs.winehq.org/show_bug.cgi?id=16548
--- Comment #2 from Rico kgbricola@web.de 2008-12-17 14:24:34 --- Created an attachment (id=18025) --> (http://bugs.winehq.org/attachment.cgi?id=18025) hack to get always a unique name
I don't know if this patch is correct. It could override some singes in name if the name is only C:\windows\temp\DES1. In this case the app would do unexpected stuff (Is it possible that GetTempFileNameW() returns such a name?).
So this is only a workaround and needs some improvement. Probably making the prefix longer?
This patch doesn't solve the problem in general, but it makes the chance smaller to get the same name. If the temp folder is clean it will work always. If the temp folder has some files the chance is there to hit a file with the same name.