home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 9 Archive
/
09-Archive.zip
/
unar2412.zip
/
patches.os2
< prev
next >
Wrap
Text File
|
1995-01-06
|
829b
|
39 lines
*** environ.c~ Fri Jan 06 13:44:00 1995
--- environ.c Wed Jun 23 07:07:20 1993
***************
*** 393,399 ****
--- 393,403 ----
FTIME time_stamp;
HFILE handle;
FILESTATUS info;
+ #ifdef __32BIT__
+ ULONG action;
+ #else
USHORT action;
+ #endif
date_stamp.day = ts_day (tstamp);
date_stamp.month = ts_month (tstamp);
***************
*** 417,424 ****
--- 421,439 ----
(void)DosClose (handle);
if (host == OS)
{
+ #ifdef __32BIT__
+ FILESTATUS fs;
+
+ if (DosQueryPathInfo(name, FIL_STANDARD, (PBYTE) &fs, sizeof(fs)) )
+ return -1;
+
+ fs.attrFile = attribute; /* hidden, system, archive, read-only */
+
+ DosSetPathInfo(name, FIL_STANDARD, (PBYTE) &fs, sizeof(fs), 0);
+ #else
if (DosSetFileMode (name, attribute, 0L))
return -1;
+ #endif
}
return code;
}