[Bug 16548] qedit:mediadet.c test is skipped due to renaming a file

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Dec 17 14:24:35 CST 2008


http://bugs.winehq.org/show_bug.cgi?id=16548





--- Comment #2 from Rico <kgbricola at 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.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list