Dont set ERROR_SUCCESS generally

Turns out we should only be setting this in a select few cases.
This commit is contained in:
2025-10-06 00:03:08 -06:00
parent 01ed50c4b4
commit 166b9036fd
30 changed files with 61 additions and 325 deletions

View File

@@ -192,7 +192,6 @@ static bool loadVersionResource(const char *fileName, std::vector<uint8_t> &buff
const uint8_t *start = static_cast<const uint8_t *>(loc.data);
buffer.assign(start, start + loc.size);
wibo::lastError = ERROR_SUCCESS;
return true;
}
@@ -235,7 +234,6 @@ unsigned int WIN_FUNC GetFileVersionInfoA(const char *lptstrFilename, unsigned i
if (buffer.size() < dwLen) {
std::memset(static_cast<uint8_t *>(lpData) + buffer.size(), 0, dwLen - buffer.size());
}
wibo::lastError = ERROR_SUCCESS;
return 1;
}