Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2b9d138c
Commit
2b9d138c
authored
Jan 02, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 02, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trackbar range should be fixed only in the case of successful
mciSendStringW. It's better to initialize dwCallback parameter if MCI_NOTIFY is specified.
parent
930b7da6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
mciwnd.c
dlls/msvideo/mciwnd.c
+8
-4
No files found.
dlls/msvideo/mciwnd.c
View file @
2b9d138c
...
...
@@ -1085,15 +1085,16 @@ end_of_mci_open:
strcatW
(
cmdW
,
(
WCHAR
*
)
lParam
);
mwi
->
lasterror
=
mciSendStringW
(
cmdW
,
NULL
,
0
,
0
);
/* fix the range tracking according to the new time format */
if
(
!
mwi
->
lasterror
)
SendDlgItemMessageW
(
hWnd
,
CTL_TRACKBAR
,
TBM_SETRANGEMAX
,
1
,
SendMessageW
(
hWnd
,
MCIWNDM_GETLENGTH
,
0
,
0
));
}
if
(
wMsg
==
MCIWNDM_SETTIMEFORMATA
)
HeapFree
(
GetProcessHeap
(),
0
,
(
void
*
)
lParam
);
/* fix the range tracking according to the new time format */
if
(
!
mwi
->
lasterror
)
SendDlgItemMessageW
(
hWnd
,
CTL_TRACKBAR
,
TBM_SETRANGEMAX
,
1
,
SendMessageW
(
hWnd
,
MCIWNDM_GETLENGTH
,
0
,
0
));
return
0
;
}
...
...
@@ -1159,9 +1160,12 @@ end_of_mci_open:
{
MCI_SET_PARMS
mci_set
;
mci_set
.
dwCallback
=
(
DWORD_PTR
)
hWnd
;
mwi
->
lasterror
=
mciSendCommandW
(
mwi
->
mci
,
MCI_SET
,
MCI_SET_DOOR_OPEN
|
MCI_NOTIFY
,
(
DWORD_PTR
)
&
mci_set
);
MCIWND_notify_mode
(
mwi
);
MCIWND_UpdateState
(
mwi
);
return
mwi
->
lasterror
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment