Changeset 198 for trunk/Lucide


Ignore:
Timestamp:
Feb 1, 2007, 7:12:09 PM (15 years ago)
Author:
Eugene Romanenko
Message:

workaround for hpfs386

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/lucidethumbs.cpp

    r155 r198  
    211211    *((long*)databuf) = databufp-databuf; // Size of all that stuff
    212212
     213    // HPFS386 workaround
     214    // Save timestamp (setting EA drops timestamp on HPFS386)
     215    APIRET qpirc = 0;
     216    FILESTATUS3 fs = { 0 };
     217    qpirc = DosQueryPathInfo( file_name, FIL_STANDARD, &fs, sizeof( fs ) );
     218
     219    // Write EA
    213220    rc = DosSetPathInfo( file_name, FIL_QUERYEASIZE, &op, sizeof(op), 0);
    214221    delete databuf;
     222
     223    // Restore timestamp
     224    if ( qpirc == 0 ) {
     225        DosSetPathInfo( file_name, FIL_STANDARD, &fs, sizeof( fs ), DSPI_WRTTHRU );
     226    }
     227
    215228    if ( rc != 0 ) {
    216229        return FALSE;
Note: See TracChangeset for help on using the changeset viewer.