Description[Win] Don't call GetLongPathName() in CreateTemporaryFileInDir().
GetLongPathName() can fail if the user doesn't have the necessary
privileges on an ancestor directory. If this call failed during
CreateTemporaryFileInDir(), the temporary file that was created
in the previous GetTempFileName() call will leak.
None of the callers rely on the path being expanded on return. So
get rid of the call.
BUG=155612
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167189
Patch Set 1 #Patch Set 2 : Merge with trunk #
Total comments: 1
Patch Set 3 : Address comments and add a unit test #
Total comments: 1
Messages
Total messages: 9 (0 generated)
|