[Bug 25558] Can't install Flight Simulator X

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jul 9 05:10:44 CDT 2012


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

--- Comment #20 from Dan Kegel <dank at kegel.com> 2012-07-09 05:10:44 CDT ---
I tried

#include <windows.h>
#include <stdio.h>
int main(int argc, char **argv)
{
    BOOL rv;
    char volname[1024];
    volname[0] = '?';
    volname[1] = 0;
    rv = GetVolumeInformation("D:\\", volname, sizeof(volname), NULL, NULL,
NULL, NULL, 0);
    printf("GVI returns %d, volname is %s\n", rv, volname);
}

in a loop:

while true
do
    wineserver -k
    rm -rf .wine
    wine vol.exe
done

About 20% of the time, it prints
GVI returns 0, volname is ?
About 80% of the time, it prints
GVI returns 1, volname is UDF Volume

Ubuntu thinks the volume name is "UDF Volume", too.

Meanwhile, the real volume name is:
$ sh winetricks volnameof=/dev/sr0
FSX DISK 1

/usr/bin/volname gets it right, too (maybe
https://bugs.launchpad.net/ubuntu/+source/eject/+bug/678419 is fixed).

Where is the bogus name coming from?
$ udevadm info -q env -n /dev/sr0 | grep ID_FS_LABEL
seems to be a pretty early point.   strace says that gets it from
/run/udev/data/b11:0
but I don't know who populates that file yet. "man udev" is somewhat
intimidating.

-- 
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