Author: tfaber
Date: Sun Dec 15 19:46:09 2013
New Revision: 61279
URL:
http://svn.reactos.org/svn/reactos?rev=61279&view=rev
Log:
[MPLAY32]
- Correctly set the trackbar range for long files. Patch by Ricardo Hanke (foreverwinter
at hotmail dot de)
CORE-7631 #resolve #comment Thanks! Committed in r61279
Modified:
trunk/reactos/base/applications/mplay32/mplay32.c
Modified: trunk/reactos/base/applications/mplay32/mplay32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mplay32/…
==============================================================================
--- trunk/reactos/base/applications/mplay32/mplay32.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mplay32/mplay32.c [iso-8859-1] Sun Dec 15 19:46:09
2013
@@ -231,7 +231,8 @@
return dwError;
}
- SendMessage(hTrackBar, TBM_SETRANGE, (WPARAM) TRUE, (LPARAM) MAKELONG(1,
mciStatus.dwReturn));
+ SendMessage(hTrackBar, TBM_SETRANGEMIN, (WPARAM) TRUE, (LPARAM) 1);
+ SendMessage(hTrackBar, TBM_SETRANGEMAX, (WPARAM) TRUE, (LPARAM) mciStatus.dwReturn);
SendMessage(hTrackBar, TBM_SETPAGESIZE, 0, 10);
SendMessage(hTrackBar, TBM_SETLINESIZE, 0, 1);
SendMessage(hTrackBar, TBM_SETPOS, (WPARAM) TRUE, (LPARAM) 1);