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
85faa431
Commit
85faa431
authored
Jun 14, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvfw32: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9665f1d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
Makefile.in
dlls/msvfw32/Makefile.in
+2
-0
mciwnd.c
dlls/msvfw32/mciwnd.c
+12
-13
No files found.
dlls/msvfw32/Makefile.in
View file @
85faa431
...
...
@@ -2,6 +2,8 @@ MODULE = msvfw32.dll
IMPORTLIB
=
msvfw32
IMPORTS
=
winmm version comctl32 user32 gdi32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
drawdib.c
\
mciwnd.c
\
...
...
dlls/msvfw32/mciwnd.c
View file @
85faa431
...
...
@@ -32,7 +32,6 @@
#include "vfw.h"
#include "digitalv.h"
#include "commctrl.h"
#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mci
);
...
...
@@ -200,7 +199,7 @@ static void MCIWND_UpdateState(MCIWndInfo *mwi)
return
;
if
((
mwi
->
dwStyle
&
MCIWNDF_SHOWNAME
)
&&
mwi
->
lpName
)
strcpyW
(
buffer
,
mwi
->
lpName
);
l
strcpyW
(
buffer
,
mwi
->
lpName
);
else
*
buffer
=
0
;
...
...
@@ -209,8 +208,8 @@ static void MCIWND_UpdateState(MCIWndInfo *mwi)
static
const
WCHAR
spaceW
[]
=
{
' '
,
0
};
static
const
WCHAR
l_braceW
[]
=
{
'('
,
0
};
if
(
*
buffer
)
strcatW
(
buffer
,
spaceW
);
strcatW
(
buffer
,
l_braceW
);
if
(
*
buffer
)
l
strcatW
(
buffer
,
spaceW
);
l
strcatW
(
buffer
,
l_braceW
);
}
if
(
mwi
->
dwStyle
&
MCIWNDF_SHOWPOS
)
...
...
@@ -219,13 +218,13 @@ static void MCIWND_UpdateState(MCIWndInfo *mwi)
posW
[
0
]
=
0
;
SendMessageW
(
mwi
->
hWnd
,
MCIWNDM_GETPOSITIONW
,
64
,
(
LPARAM
)
posW
);
strcatW
(
buffer
,
posW
);
l
strcatW
(
buffer
,
posW
);
}
if
((
mwi
->
dwStyle
&
(
MCIWNDF_SHOWPOS
|
MCIWNDF_SHOWMODE
))
==
(
MCIWNDF_SHOWPOS
|
MCIWNDF_SHOWMODE
))
{
static
const
WCHAR
dashW
[]
=
{
' '
,
'-'
,
' '
,
0
};
strcatW
(
buffer
,
dashW
);
l
strcatW
(
buffer
,
dashW
);
}
if
(
mwi
->
dwStyle
&
MCIWNDF_SHOWMODE
)
...
...
@@ -234,13 +233,13 @@ static void MCIWND_UpdateState(MCIWndInfo *mwi)
modeW
[
0
]
=
0
;
SendMessageW
(
mwi
->
hWnd
,
MCIWNDM_GETMODEW
,
64
,
(
LPARAM
)
modeW
);
strcatW
(
buffer
,
modeW
);
l
strcatW
(
buffer
,
modeW
);
}
if
(
mwi
->
dwStyle
&
(
MCIWNDF_SHOWPOS
|
MCIWNDF_SHOWMODE
))
{
static
const
WCHAR
r_braceW
[]
=
{
')'
,
0
};
strcatW
(
buffer
,
r_braceW
);
l
strcatW
(
buffer
,
r_braceW
);
}
TRACE
(
"=> %s
\n
"
,
debugstr_w
(
buffer
));
...
...
@@ -590,8 +589,8 @@ static LRESULT WINAPI MCIWndProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lPa
mwi
->
mci
=
mci_open
.
wDeviceID
;
mwi
->
alias
=
HandleToLong
(
hWnd
)
+
1
;
mwi
->
lpName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
((
LPWSTR
)
lParam
)
+
1
)
*
sizeof
(
WCHAR
));
strcpyW
(
mwi
->
lpName
,
(
LPWSTR
)
lParam
);
mwi
->
lpName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
l
strlenW
((
LPWSTR
)
lParam
)
+
1
)
*
sizeof
(
WCHAR
));
l
strcpyW
(
mwi
->
lpName
,
(
LPWSTR
)
lParam
);
MCIWND_UpdateState
(
mwi
);
...
...
@@ -987,7 +986,7 @@ end_of_mci_open:
TRACE
(
"MCIWNDM_SENDSTRINGW %s
\n
"
,
debugstr_w
((
LPCWSTR
)
lParam
));
p
=
strchrW
((
LPCWSTR
)
lParam
,
' '
);
p
=
wcschr
((
LPCWSTR
)
lParam
,
' '
);
if
(
p
)
{
static
const
WCHAR
formatW
[]
=
{
'%'
,
'd'
,
' '
,
0
};
...
...
@@ -1000,7 +999,7 @@ end_of_mci_open:
memcpy
(
cmdW
,
(
void
*
)
lParam
,
pos
*
sizeof
(
WCHAR
));
wsprintfW
(
cmdW
+
pos
,
formatW
,
mwi
->
alias
);
strcatW
(
cmdW
,
(
WCHAR
*
)
lParam
+
pos
);
l
strcatW
(
cmdW
,
(
WCHAR
*
)
lParam
+
pos
);
}
else
cmdW
=
(
LPWSTR
)
lParam
;
...
...
@@ -1182,7 +1181,7 @@ end_of_mci_open:
{
cmdW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
((
LPCWSTR
)
lParam
)
+
64
)
*
sizeof
(
WCHAR
));
wsprintfW
(
cmdW
,
formatW
,
mwi
->
alias
);
strcatW
(
cmdW
,
(
WCHAR
*
)
lParam
);
l
strcatW
(
cmdW
,
(
WCHAR
*
)
lParam
);
mwi
->
lasterror
=
mciSendStringW
(
cmdW
,
NULL
,
0
,
0
);
...
...
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