From f9d881b1e7c2906da881897e1cb370180cd98f46 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 7 Feb 2018 01:46:45 +0100 Subject: [PATCH] Fixed a bug in the LPT devices initialization that was causing a hard freeze on hard reset. --- src/lpt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lpt.c b/src/lpt.c index cfa781102..6d21440a3 100644 --- a/src/lpt.c +++ b/src/lpt.c @@ -48,9 +48,11 @@ static void *lpt_device_ps[3]; void lpt_devices_init() { int i = 0; - int c = 0; + int c; for (i = 0; i < 3; i++) { + c = 0; + while (strcmp(lpt_devices[c].internal_name, lpt_device_names[i]) && strlen(lpt_devices[c].internal_name) != 0) c++;