mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
fix bug where play() was dying instead of skipping over bad files
This commit is contained in:
@@ -100,7 +100,7 @@ int play(char *fn)
|
|||||||
|
|
||||||
input_file = CreateFile(fn, GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
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) {
|
if(input_file == INVALID_HANDLE_VALUE) {
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
CloseHandle(input_file);
|
CloseHandle(input_file);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user