FindFirstFileW

This commit is contained in:
rjkiv
2025-08-09 14:53:56 -07:00
parent 87c71a6763
commit f80d7dda62
4 changed files with 75 additions and 2 deletions

View File

@@ -310,11 +310,11 @@ namespace msvcrt {
int WIN_ENTRY _itow_s(int value, uint16_t *buffer, size_t size, int radix){
DEBUG_LOG("_itow_s value %d, size %d, radix %d\n", value, size, radix);
if (!buffer || size == 0) return -1;
if (radix != 10) return -1; // only base 10 supported for now
assert(radix == 10); // only base 10 supported for now
std::string str = std::to_string(value);
std::vector<uint16_t> wstr = stringToWideString(str.c_str());
buffer = wstr.data();
wstrcpy(buffer, wstr.data());
return 0;
}