CVS: winex/files dos_fs.c,1.40,1.41

[email protected] 29 Aug 2007 11:55:59 -0000
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/files dos_fs.c,1.40,1.41Update of /var/lib/cvsd/cvsroot/winex/files
In directory agravaine:/tmp/cvs-serv28767/files

Modified Files:
	dos_fs.c 
Log Message:
Fix regression caused by FindFirstFile ordering changes


Index: dos_fs.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/files/dos_fs.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- dos_fs.c	29 Aug 2007 11:55:13 -0000	1.40
+++ dos_fs.c	29 Aug 2007 11:55:57 -0000	1.41
@@ -1561,14 +1561,14 @@
 {
     DOS_DIR *pDir = DOSFS_OpenDir (pInfo->path);
 
-    pDir->state = pInfo->state;
-
    /* Seek to the place where we were at before, since we no longer
     * cache the directory pointer with FindFirstFile and friends.
     * We need to do something different depending on whether
     * we get an fd or a DIR* from DOSFS_OpenDir. */
     if (pDir)
     {
+       pDir->state = pInfo->state;
+
        if (pDir->dir)
        { 
           seekdir (pDir->dir, pInfo->cur_dir_entry);