mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-30 15:05:16 -04:00
Build fixes for Windows builds
- now to test in OSX and Linux
This commit is contained in:
parent
80b85cbf19
commit
0114a72fa5
7 changed files with 46 additions and 61 deletions
|
@ -159,15 +159,14 @@ USTATUS UEFIDumper::recursiveDump(const UModelIndex & index)
|
|||
UString orgName = uniqueItemName(index);
|
||||
UString name = orgName;
|
||||
bool nameFound = false;
|
||||
for (int i = 0; i < 0x10000; ++i) {
|
||||
if (isExistOnFs(name)) {
|
||||
name = orgName + UString("_") + usprintf("%04X", i);
|
||||
}
|
||||
else {
|
||||
for (int i = 1; i < 1000; ++i) {
|
||||
if (!isExistOnFs(name + UString("_info.txt"))) {
|
||||
nameFound = true;
|
||||
break;
|
||||
}
|
||||
name = orgName + UString("_") + usprintf("%03d", i);
|
||||
}
|
||||
|
||||
if (!nameFound)
|
||||
return U_INVALID_PARAMETER; //TODO: replace with proper errorCode
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue