shithub: dumb

Download patch

ref: 1a9e0d4fd889dc9d17a5ebe97825be0cb2b7a273
parent: ca554279a235b23c7f5f6ff9ce478a7aa7250dfe
author: Chris Moeller <kode54@gmail.com>
date: Sun Oct 3 02:17:34 EDT 2010

- Added range checking for XM global volume command
- Version is now 0.9.9.20

git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C490

--- a/dumb/src/it/xmeffect.c
+++ b/dumb/src/it/xmeffect.c
@@ -167,6 +167,7 @@
 		case XM_SET_GLOBAL_VOLUME:
 			effect = IT_SET_GLOBAL_VOLUME;
 			value *= 2;
+			if (value > 128) value = 128;
 			break;
 
 		case XM_KEY_OFF: