Return correct resource id for time format strings

Dmitry Timoshkov dmitry at baikal.ru
Tue Jan 6 07:22:59 CST 2004


Hello,

time format strings have ids with offset MCI_FORMAT_RETURN_BASE.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Return correct resource id for time format strings.

--- cvs/hq/wine/dlls/winmm/mciavi/info.c	2004-01-01 15:33:54.000000000 +0800
+++ wine/dlls/winmm/mciavi/info.c	2004-01-06 21:08:31.000000000 +0800
@@ -385,7 +385,8 @@ DWORD	MCIAVI_mciStatus(UINT wDevID, DWOR
 	    TRACE("MCI_STATUS_READY = %u\n", LOWORD(lpParms->dwReturn));
 	    break;
 	case MCI_STATUS_TIME_FORMAT:
-	    lpParms->dwReturn = MAKEMCIRESOURCE(wma->dwMciTimeFormat, wma->dwMciTimeFormat);
+	    lpParms->dwReturn = MAKEMCIRESOURCE(wma->dwMciTimeFormat,
+                                wma->dwMciTimeFormat + MCI_FORMAT_RETURN_BASE);
 	    TRACE("MCI_STATUS_TIME_FORMAT => %u\n", LOWORD(lpParms->dwReturn));
 	    ret = MCI_RESOURCE_RETURNED;
 	    break;






More information about the wine-patches mailing list