[*] Missing SysPushErrorXXXs

This commit is contained in:
Reece Wilson 2023-09-07 23:20:26 +01:00
parent 36a72228db
commit 51dcd190b3
2 changed files with 9 additions and 0 deletions

View File

@ -257,11 +257,13 @@ namespace Aurora::IO
if (!uHandle ||
uHandle == (AuUInt)INVALID_HANDLE_VALUE)
{
SysPushErrorArg();
return false;
}
if (!(dwType = ::GetFileType((HANDLE)uHandle)))
{
SysPushErrorGeneric();
return {};
}
@ -276,11 +278,13 @@ namespace Aurora::IO
if (!uHandle ||
uHandle == (AuUInt)INVALID_HANDLE_VALUE)
{
SysPushErrorArg();
return false;
}
if (!(dwType = ::GetFileType((HANDLE)uHandle)))
{
SysPushErrorGeneric();
return {};
}
@ -295,11 +299,13 @@ namespace Aurora::IO
if (!uHandle ||
uHandle == (AuUInt)INVALID_HANDLE_VALUE)
{
SysPushErrorArg();
return false;
}
if (!(dwType = ::GetFileType((HANDLE)uHandle)))
{
SysPushErrorGeneric();
return {};
}

View File

@ -174,6 +174,7 @@ namespace Aurora::IO
{
if ((AuSInt)uHandle < 0)
{
SysPushErrorArg();
return false;
}
@ -186,6 +187,7 @@ namespace Aurora::IO
if ((AuSInt)uHandle < 0)
{
SysPushErrorArg();
return false;
}
@ -204,6 +206,7 @@ namespace Aurora::IO
if ((AuSInt)uHandle < 0)
{
SysPushErrorArg();
return false;
}