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
7844b363
Commit
7844b363
authored
Jun 11, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c7d06a08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
Makefile.in
dlls/mfplat/Makefile.in
+2
-0
main.c
dlls/mfplat/main.c
+10
-11
No files found.
dlls/mfplat/Makefile.in
View file @
7844b363
...
@@ -2,6 +2,8 @@ MODULE = mfplat.dll
...
@@ -2,6 +2,8 @@ MODULE = mfplat.dll
IMPORTLIB
=
mfplat
IMPORTLIB
=
mfplat
IMPORTS
=
advapi32 ole32 mfuuid propsys
IMPORTS
=
advapi32 ole32 mfuuid propsys
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
C_SRCS
=
\
buffer.c
\
buffer.c
\
main.c
\
main.c
\
...
...
dlls/mfplat/main.c
View file @
7844b363
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
#include "propsys.h"
#include "propsys.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/list.h"
#include "wine/list.h"
#include "mfplat_private.h"
#include "mfplat_private.h"
...
@@ -127,7 +126,7 @@ static const BYTE guid_conv_table[256] =
...
@@ -127,7 +126,7 @@ static const BYTE guid_conv_table[256] =
static
WCHAR
*
GUIDToString
(
WCHAR
*
str
,
REFGUID
guid
)
static
WCHAR
*
GUIDToString
(
WCHAR
*
str
,
REFGUID
guid
)
{
{
s
printfW
(
str
,
szGUIDFmt
,
guid
->
Data1
,
guid
->
Data2
,
s
wprintf
(
str
,
39
,
szGUIDFmt
,
guid
->
Data1
,
guid
->
Data2
,
guid
->
Data3
,
guid
->
Data4
[
0
],
guid
->
Data4
[
1
],
guid
->
Data3
,
guid
->
Data4
[
0
],
guid
->
Data4
[
1
],
guid
->
Data4
[
2
],
guid
->
Data4
[
3
],
guid
->
Data4
[
4
],
guid
->
Data4
[
2
],
guid
->
Data4
[
3
],
guid
->
Data4
[
4
],
guid
->
Data4
[
5
],
guid
->
Data4
[
6
],
guid
->
Data4
[
7
]);
guid
->
Data4
[
5
],
guid
->
Data4
[
6
],
guid
->
Data4
[
7
]);
...
@@ -216,14 +215,14 @@ static HRESULT register_transform(const CLSID *clsid, const WCHAR *name, UINT32
...
@@ -216,14 +215,14 @@ static HRESULT register_transform(const CLSID *clsid, const WCHAR *name, UINT32
UINT8
*
blob
;
UINT8
*
blob
;
GUIDToString
(
buffer
,
clsid
);
GUIDToString
(
buffer
,
clsid
);
s
printfW
(
str
,
reg_format
,
transform_keyW
,
buffer
);
s
wprintf
(
str
,
ARRAY_SIZE
(
str
)
,
reg_format
,
transform_keyW
,
buffer
);
if
((
ret
=
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
str
,
&
hclsid
)))
if
((
ret
=
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
str
,
&
hclsid
)))
hr
=
HRESULT_FROM_WIN32
(
ret
);
hr
=
HRESULT_FROM_WIN32
(
ret
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
size
=
(
strlenW
(
name
)
+
1
)
*
sizeof
(
WCHAR
);
size
=
(
l
strlenW
(
name
)
+
1
)
*
sizeof
(
WCHAR
);
if
((
ret
=
RegSetValueExW
(
hclsid
,
NULL
,
0
,
REG_SZ
,
(
BYTE
*
)
name
,
size
)))
if
((
ret
=
RegSetValueExW
(
hclsid
,
NULL
,
0
,
REG_SZ
,
(
BYTE
*
)
name
,
size
)))
hr
=
HRESULT_FROM_WIN32
(
ret
);
hr
=
HRESULT_FROM_WIN32
(
ret
);
}
}
...
@@ -280,7 +279,7 @@ static HRESULT register_category(CLSID *clsid, GUID *category)
...
@@ -280,7 +279,7 @@ static HRESULT register_category(CLSID *clsid, GUID *category)
GUIDToString
(
guid1
,
category
);
GUIDToString
(
guid1
,
category
);
GUIDToString
(
guid2
,
clsid
);
GUIDToString
(
guid2
,
clsid
);
s
printfW
(
str
,
reg_format
,
categories_keyW
,
guid1
,
guid2
);
s
wprintf
(
str
,
ARRAY_SIZE
(
str
)
,
reg_format
,
categories_keyW
,
guid1
,
guid2
);
if
(
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
str
,
&
htmp1
))
if
(
RegCreateKeyW
(
HKEY_CLASSES_ROOT
,
str
,
&
htmp1
))
return
E_FAIL
;
return
E_FAIL
;
...
@@ -1342,7 +1341,7 @@ HRESULT attributes_GetStringLength(struct attributes *attributes, REFGUID key, U
...
@@ -1342,7 +1341,7 @@ HRESULT attributes_GetStringLength(struct attributes *attributes, REFGUID key, U
if
(
attribute
)
if
(
attribute
)
{
{
if
(
attribute
->
value
.
vt
==
MF_ATTRIBUTE_STRING
)
if
(
attribute
->
value
.
vt
==
MF_ATTRIBUTE_STRING
)
*
length
=
strlenW
(
attribute
->
value
.
u
.
pwszVal
);
*
length
=
l
strlenW
(
attribute
->
value
.
u
.
pwszVal
);
else
else
hr
=
MF_E_INVALIDTYPE
;
hr
=
MF_E_INVALIDTYPE
;
}
}
...
@@ -1367,7 +1366,7 @@ HRESULT attributes_GetString(struct attributes *attributes, REFGUID key, WCHAR *
...
@@ -1367,7 +1366,7 @@ HRESULT attributes_GetString(struct attributes *attributes, REFGUID key, WCHAR *
{
{
if
(
attribute
->
value
.
vt
==
MF_ATTRIBUTE_STRING
)
if
(
attribute
->
value
.
vt
==
MF_ATTRIBUTE_STRING
)
{
{
int
len
=
strlenW
(
attribute
->
value
.
u
.
pwszVal
);
int
len
=
l
strlenW
(
attribute
->
value
.
u
.
pwszVal
);
if
(
length
)
if
(
length
)
*
length
=
len
;
*
length
=
len
;
...
@@ -2252,7 +2251,7 @@ HRESULT WINAPI MFGetAttributesAsBlob(IMFAttributes *attributes, UINT8 *buffer, U
...
@@ -2252,7 +2251,7 @@ HRESULT WINAPI MFGetAttributesAsBlob(IMFAttributes *attributes, UINT8 *buffer, U
data
=
value
.
u
.
puuid
;
data
=
value
.
u
.
puuid
;
break
;
break
;
case
MF_ATTRIBUTE_STRING
:
case
MF_ATTRIBUTE_STRING
:
item
.
u
.
subheader
.
size
=
(
strlenW
(
value
.
u
.
pwszVal
)
+
1
)
*
sizeof
(
WCHAR
);
item
.
u
.
subheader
.
size
=
(
l
strlenW
(
value
.
u
.
pwszVal
)
+
1
)
*
sizeof
(
WCHAR
);
data
=
value
.
u
.
pwszVal
;
data
=
value
.
u
.
pwszVal
;
break
;
break
;
case
MF_ATTRIBUTE_BLOB
:
case
MF_ATTRIBUTE_BLOB
:
...
@@ -5037,7 +5036,7 @@ static HRESULT resolver_get_bytestream_handler(IMFByteStream *stream, const WCHA
...
@@ -5037,7 +5036,7 @@ static HRESULT resolver_get_bytestream_handler(IMFByteStream *stream, const WCHA
}
}
/* Extension */
/* Extension */
url_ext
=
url
?
strrchrW
(
url
,
'.'
)
:
NULL
;
url_ext
=
url
?
wcsrchr
(
url
,
'.'
)
:
NULL
;
if
(
!
url_ext
&&
!
mimeW
)
if
(
!
url_ext
&&
!
mimeW
)
{
{
...
@@ -5126,7 +5125,7 @@ static HRESULT resolver_get_scheme_handler(const WCHAR *url, DWORD flags, IMFSch
...
@@ -5126,7 +5125,7 @@ static HRESULT resolver_get_scheme_handler(const WCHAR *url, DWORD flags, IMFSch
/* RFC 3986: scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) */
/* RFC 3986: scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) */
while
(
*
ptr
)
while
(
*
ptr
)
{
{
WCHAR
ch
=
to
lowerW
(
*
ptr
);
WCHAR
ch
=
to
wlower
(
*
ptr
);
if
(
*
ptr
==
'*'
&&
ptr
==
url
)
if
(
*
ptr
==
'*'
&&
ptr
==
url
)
{
{
...
@@ -7162,7 +7161,7 @@ static WCHAR *heap_strdupW(const WCHAR *str)
...
@@ -7162,7 +7161,7 @@ static WCHAR *heap_strdupW(const WCHAR *str)
{
{
unsigned
int
size
;
unsigned
int
size
;
size
=
(
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
size
=
(
l
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
ret
=
heap_alloc
(
size
);
ret
=
heap_alloc
(
size
);
if
(
ret
)
if
(
ret
)
memcpy
(
ret
,
str
,
size
);
memcpy
(
ret
,
str
,
size
);
...
...
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