fix bug where play() was dying instead of skipping over bad files
authorJosh Coalson <jcoalson@users.sourceforce.net>
Sun, 17 Feb 2002 22:23:56 +0000 (22:23 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Sun, 17 Feb 2002 22:23:56 +0000 (22:23 +0000)
src/plugin_winamp2/in_flac.c

index f8ad03a..2e536df 100644 (file)
@@ -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);