CreateFileA with /dev/random as WinNT filename

Karl Vogel karl.vogel at gmail.com
Sat Jun 13 10:18:19 CDT 2009


On Sat, Jun 13, 2009 at 4:53 PM, Jeff Zaroyko <jeffzaroyko at gmail.com> wrote:
>
> 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

Just traced through the code on windows and it does indeed fail. It's
kind of puzzling
why that check is in there then, intriguing.

Thanks for the bug link.



More information about the wine-devel mailing list