Decompile fn_18256 (CreateUniqueFileName)
Batch #15960 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_18256 CreateUniqueFileName: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
0690e02593
commit
a4d962279d
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ std::string CreateUniqueFileName(const std::string& filename) {
|
|||
while (_access(result.c_str(), 0) == 0) {
|
||||
result = static_cast<const std::string&>(FormatOwnedString("%s%s%s(%d)%s", drive, directory, name, ++index, extension));
|
||||
}
|
||||
std::ofstream output(result.c_str(), std::ios::out, _SH_DENYNO);
|
||||
std::ofstream output(result);
|
||||
output.close();
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue