diff --git a/repertory/librepertory/include/common.hpp b/repertory/librepertory/include/common.hpp index 23c96c41..41aad94a 100644 --- a/repertory/librepertory/include/common.hpp +++ b/repertory/librepertory/include/common.hpp @@ -231,46 +231,46 @@ using WCHAR = wchar_t; #define MAX_PATH 260 #define STATUS_SUCCESS \ - std::int32_t { 0 } + std::uint32_t { 0 } #define STATUS_ACCESS_DENIED \ - std::int32_t { 0xC0000022L } + std::uint32_t { 0xC0000022L } #define STATUS_DEVICE_BUSY \ - std::int32_t { 0x80000011L } + std::uint32_t { 0x80000011L } #define STATUS_DEVICE_INSUFFICIENT_RESOURCES \ - std::int32_t { 0xC0000468L } + std::uint32_t { 0xC0000468L } #define STATUS_DIRECTORY_NOT_EMPTY \ - std::int32_t { 0xC0000101L } + std::uint32_t { 0xC0000101L } #define STATUS_FILE_IS_A_DIRECTORY \ - std::int32_t { 0xC00000BAL } + std::uint32_t { 0xC00000BAL } #define STATUS_FILE_TOO_LARGE \ - std::int32_t { 0xC0000904L } + std::uint32_t { 0xC0000904L } #define STATUS_INSUFFICIENT_RESOURCES \ - std::int32_t { 0xC000009AL } + std::uint32_t { 0xC000009AL } #define STATUS_INTERNAL_ERROR \ - std::int32_t { 0xC00000E5L } + std::uint32_t { 0xC00000E5L } #define STATUS_INVALID_ADDRESS \ - std::int32_t { 0xC0000141L } + std::uint32_t { 0xC0000141L } #define STATUS_INVALID_HANDLE \ - std::int32_t { 0xC0000006L } + std::uint32_t { 0xC0000006L } #define STATUS_INVALID_IMAGE_FORMAT \ - std::int32_t { 0xC000007BL } + std::uint32_t { 0xC000007BL } #define STATUS_INVALID_PARAMETER \ - std::int32_t { 0xC000000DL } + std::uint32_t { 0xC000000DL } #define STATUS_NO_MEMORY \ - std::int32_t { 0xC0000017L } + std::uint32_t { 0xC0000017L } #define STATUS_NOT_IMPLEMENTED \ - std::int32_t { 0xC0000002L } + std::uint32_t { 0xC0000002L } #define STATUS_OBJECT_NAME_EXISTS \ - std::int32_t { 0x40000000L } + std::uint32_t { 0x40000000L } #define STATUS_OBJECT_NAME_NOT_FOUND \ std::int32_t { 0xC0000034L } #define STATUS_OBJECT_PATH_INVALID \ - std::int32_t { 0xC0000039L } + std::uint32_t { 0xC0000039L } #define STATUS_UNEXPECTED_IO_ERROR \ - std::int32_t { 0xC00000E9L } + std::uint32_t { 0xC00000E9L } #define CONVERT_STATUS_NOT_IMPLEMENTED(e) \ - ((std::int32_t{e} == STATUS_NOT_IMPLEMENTED) ? -ENOTSUP : e) + ((std::uint32_t{e} == STATUS_NOT_IMPLEMENTED) ? -ENOTSUP : e) namespace Fsp::FileSystemBase { enum {