mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-04 04:46:28 +00:00
Replace remaining WinAPI types with standard C++ equivalents
DWORD→uint32_t, BYTE→uint8_t, HRESULT→int32_t, HANDLE→void*, UINT→uint32_t, INT→int32_t, WORD→uint16_t, LONG→int32_t, SHORT→int16_t, LONGLONG→int64_t, ULONG_PTR→uintptr_t, PBYTE→uint8_t*, LPWSTR/PWSTR→wchar_t*, FLOAT→float, CHAR→char, boolean→bool, CONST→const, TRUE→true, FALSE→false across 176 files (excluding vendor libs and Linux stubs).
This commit is contained in:
@@ -21,7 +21,7 @@ void SetThreadName(std::uint32_t threadId, const char* threadName) {
|
||||
#if (defined _WINDOWS64 | 0)
|
||||
__try {
|
||||
RaiseException(0x406D1388, 0, sizeof(info) / sizeof(std::uint32_t),
|
||||
reinterpret_cast<ULONG_PTR*>(&info));
|
||||
reinterpret_cast<uintptr_t*>(&info));
|
||||
} __except (GetExceptionCode() == 0x406D1388 ? EXCEPTION_CONTINUE_EXECUTION
|
||||
: EXCEPTION_EXECUTE_HANDLER) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user