From 1d1fccb60a32f94e5d14b7edf3e1beab38669c2c Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Sun, 17 Feb 2002 22:23:56 +0000 Subject: [PATCH] fix bug where play() was dying instead of skipping over bad files --- src/plugin_winamp2/in_flac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin_winamp2/in_flac.c b/src/plugin_winamp2/in_flac.c index f8ad03a..2e536df 100644 --- a/src/plugin_winamp2/in_flac.c +++ b/src/plugin_winamp2/in_flac.c @@ -99,8 +99,8 @@ int play(char *fn) } input_file = CreateFile(fn, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); - if (input_file == INVALID_HANDLE_VALUE) { - return 1; + if(input_file == INVALID_HANDLE_VALUE) { + return -1; } CloseHandle(input_file); -- 2.7.4