CreateFileA with /dev/random as WinNT filename

Jeff Zaroyko jeffzaroyko at gmail.com
Sat Jun 13 09:53:41 CDT 2009


On Sun, Jun 14, 2009 at 12:43 AM, Karl Vogel<karl.vogel at gmail.com> wrote:
> In ran into a problem with a game, Dark Age of Camelot, where it locked up
> after logging into the game. After some tracing it became apparent that the
> game was trying to read bytes from /dev/random, but due to me working
> remotely on the computer, not enough entropy was generated which stalled the
> game.
>
> I was just wondering if it would be acceptable to specifically check for
> /dev/random in wine_nt_to_unix_file_name() and turn that into /dev/urandom
> ?!
>
>

Hi Karl

It's more than likely that this call is supposed to fail, since on
windows /dev/random would be interpreted as c:\dev\random, if C: is
the current drive.  This bug also affects other applications see,
15883.

Regards
Jeff

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



More information about the wine-devel mailing list