From c0b21416acb4b2c67ccb5a987b2ac933d5e32f68 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Mon, 8 Oct 2007 08:27:19 +0000 Subject: 20071008-0926 --- emu/port/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emu/port/random.c') diff --git a/emu/port/random.c b/emu/port/random.c index 05ae2b9a..90d20c6a 100644 --- a/emu/port/random.c +++ b/emu/port/random.c @@ -52,7 +52,7 @@ genrandom(void *v) for(;;) if(++rb.randomcount > 65535) break; - if(!rbnotfull(0)) + if(rb.filled || !rbnotfull(0)) Sleep(&rb.producer, rbnotfull, 0); } } -- cgit v1.2.3