Mercurial > hg > xemacs-beta
comparison src/fileio.c @ 4867:7822019c5d98
Revert cast in check_writable() and fix up macros to use const.
author | Vin Shelton <acs@xemacs.org> |
---|---|
date | Sun, 17 Jan 2010 22:08:56 -0500 |
parents | a03421eb562b |
children | 19a72041c5ed |
comparison
equal
deleted
inserted
replaced
4865:6c0bb4d2c23a | 4867:7822019c5d98 |
---|---|
2342 DWORD dwPrivSetSize = sizeof( PRIVILEGE_SET ); | 2342 DWORD dwPrivSetSize = sizeof( PRIVILEGE_SET ); |
2343 BOOL fAccessGranted = FALSE; | 2343 BOOL fAccessGranted = FALSE; |
2344 DWORD dwAccessAllowed; | 2344 DWORD dwAccessAllowed; |
2345 Extbyte *fnameext; | 2345 Extbyte *fnameext; |
2346 | 2346 |
2347 LOCAL_FILE_FORMAT_TO_TSTR ((Ibyte *)filename, fnameext); | 2347 LOCAL_FILE_FORMAT_TO_TSTR (filename, fnameext); |
2348 | 2348 |
2349 // First check for a normal file with the old-style readonly bit | 2349 // First check for a normal file with the old-style readonly bit |
2350 attributes = qxeGetFileAttributes(fnameext); | 2350 attributes = qxeGetFileAttributes(fnameext); |
2351 if (FILE_ATTRIBUTE_READONLY == (attributes & (FILE_ATTRIBUTE_DIRECTORY|FILE_ATTRIBUTE_READONLY))) | 2351 if (FILE_ATTRIBUTE_READONLY == (attributes & (FILE_ATTRIBUTE_DIRECTORY|FILE_ATTRIBUTE_READONLY))) |
2352 return 0; | 2352 return 0; |