diff --git a/setter/src/os2/attr.c b/setter/src/os2/attr.c index 82b0980..fb6934e 100644 --- a/setter/src/os2/attr.c +++ b/setter/src/os2/attr.c @@ -46,14 +46,12 @@ void FileAttributes(const char* path) char drivePath[4]; APIRET rc = 0, wRc = 0, cRc = 0; HFILE handle; - int i; + int i; + ACTION_RET actionTaken = 0; // 32 bit #if(defined(__I386__) || defined(__i386__) || defined(__THW_INTEL) || defined(_M_I386)) - ULONG actionTaken = 0; FILESTATUS3 fileStatus = {{0}}; -#else // 16 bit - USHORT actionTaken = 0; #endif drivePath[0] = path[0]; diff --git a/setter/src/os2/os2.h b/setter/src/os2/os2.h index 4b2cb34..896f72e 100644 --- a/setter/src/os2/os2.h +++ b/setter/src/os2/os2.h @@ -39,6 +39,12 @@ Copyright (C) 2011-2021 Natalia Portillo #define APIRET USHORT #endif +#define ACTION_RET USHORT + +#else // 32 bit + +#define ACTION_RET ULONG + #endif /* Information level types (defins method of query) */