[Bug 15366] Starcraft cant find CD

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Oct 2 16:19:50 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=15366





--- Comment #8 from Pink Sloth <robert-meier at gmx.net>  2008-10-02 16:19:49 ---
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > Does reverting that patch fix it?
> > > 
> > 
> > How can I revert that patch?
> > But if this help, the last time, with "0 to test after this", was OK.
> > 
> 
> $ git show b0192cfed382c470e67aaac744de56011fe27bfb | patch -p1 -R
> 

This fixed the problem.

The relevant source from 2245 - 2271:
            else
            {
                /* Linux's fstatvfs is buggy */
#if !defined(linux) || !defined(HAVE_FSTATFS)
                struct statvfs stfs;

                if (fstatvfs( fd, &stfs ) < 0)
                {
                    io->u.Status = FILE_GetNtStatus();
                    break;
                }
                info->BytesPerSector = stfs.f_frsize;
#else
                struct statfs stfs;
                if (fstatfs( fd, &stfs ) < 0)
                {
                    io->u.Status = FILE_GetNtStatus();
                    break;
                }
                info->BytesPerSector = stfs.f_bsize;
#endif
                info->TotalAllocationUnits.QuadPart = stfs.f_blocks;
                info->AvailableAllocationUnits.QuadPart = stfs.f_bavail;
                info->SectorsPerAllocationUnit = 1;
                io->Information = sizeof(*info);
                io->u.Status = STATUS_SUCCESS;
            }


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list