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
0012c26f
Commit
0012c26f
authored
Nov 30, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
769d88a3
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
23 additions
and
79 deletions
+23
-79
Makefile.in
dlls/windowscodecs/Makefile.in
+2
-0
bitmap.c
dlls/windowscodecs/bitmap.c
+0
-2
bmpdecode.c
dlls/windowscodecs/bmpdecode.c
+0
-2
bmpencode.c
dlls/windowscodecs/bmpencode.c
+0
-2
clsfactory.c
dlls/windowscodecs/clsfactory.c
+0
-2
colorcontext.c
dlls/windowscodecs/colorcontext.c
+0
-2
colortransform.c
dlls/windowscodecs/colortransform.c
+0
-2
converter.c
dlls/windowscodecs/converter.c
+0
-2
ddsformat.c
dlls/windowscodecs/ddsformat.c
+0
-3
decoder.c
dlls/windowscodecs/decoder.c
+0
-3
encoder.c
dlls/windowscodecs/encoder.c
+0
-3
fliprotate.c
dlls/windowscodecs/fliprotate.c
+0
-2
gifformat.c
dlls/windowscodecs/gifformat.c
+0
-2
icoformat.c
dlls/windowscodecs/icoformat.c
+0
-2
imgfactory.c
dlls/windowscodecs/imgfactory.c
+0
-2
info.c
dlls/windowscodecs/info.c
+5
-8
main.c
dlls/windowscodecs/main.c
+0
-1
metadatahandler.c
dlls/windowscodecs/metadatahandler.c
+0
-2
metadataquery.c
dlls/windowscodecs/metadataquery.c
+7
-8
palette.c
dlls/windowscodecs/palette.c
+0
-2
pngformat.c
dlls/windowscodecs/pngformat.c
+0
-3
propertybag.c
dlls/windowscodecs/propertybag.c
+3
-6
proxy.c
dlls/windowscodecs/proxy.c
+0
-2
regsvr.c
dlls/windowscodecs/regsvr.c
+3
-4
scaler.c
dlls/windowscodecs/scaler.c
+0
-2
tgaformat.c
dlls/windowscodecs/tgaformat.c
+0
-3
unix_iface.c
dlls/windowscodecs/unix_iface.c
+0
-3
wincodecs_private.h
dlls/windowscodecs/wincodecs_private.h
+3
-4
No files found.
dlls/windowscodecs/Makefile.in
View file @
0012c26f
...
@@ -4,6 +4,8 @@ IMPORTS = windowscodecs uuid ole32 oleaut32 propsys rpcrt4 shlwapi user32 gdi3
...
@@ -4,6 +4,8 @@ IMPORTS = windowscodecs uuid ole32 oleaut32 propsys rpcrt4 shlwapi user32 gdi3
EXTRAINCL
=
$(JPEG_CFLAGS)
$(PNG_CFLAGS)
$(TIFF_CFLAGS)
EXTRAINCL
=
$(JPEG_CFLAGS)
$(PNG_CFLAGS)
$(TIFF_CFLAGS)
EXTRALIBS
=
$(APPLICATIONSERVICES_LIBS)
EXTRALIBS
=
$(APPLICATIONSERVICES_LIBS)
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
C_SRCS
=
\
bitmap.c
\
bitmap.c
\
bmpdecode.c
\
bmpdecode.c
\
...
...
dlls/windowscodecs/bitmap.c
View file @
0012c26f
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/bmpdecode.c
View file @
0012c26f
...
@@ -16,8 +16,6 @@
...
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <assert.h>
#include <assert.h>
#include <stdarg.h>
#include <stdarg.h>
...
...
dlls/windowscodecs/bmpencode.c
View file @
0012c26f
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/clsfactory.c
View file @
0012c26f
...
@@ -16,8 +16,6 @@
...
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/colorcontext.c
View file @
0012c26f
...
@@ -16,8 +16,6 @@
...
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/colortransform.c
View file @
0012c26f
...
@@ -16,8 +16,6 @@
...
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/converter.c
View file @
0012c26f
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#include <math.h>
#include <math.h>
...
...
dlls/windowscodecs/ddsformat.c
View file @
0012c26f
...
@@ -26,9 +26,6 @@
...
@@ -26,9 +26,6 @@
* A cube map array is equivalent to a 2D texture array which has cubeCount*6 textures.
* A cube map array is equivalent to a 2D texture array which has cubeCount*6 textures.
*/
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/decoder.c
View file @
0012c26f
...
@@ -16,9 +16,6 @@
...
@@ -16,9 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#define NONAMELESSUNION
#define NONAMELESSUNION
...
...
dlls/windowscodecs/encoder.c
View file @
0012c26f
...
@@ -16,9 +16,6 @@
...
@@ -16,9 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#define NONAMELESSUNION
#define NONAMELESSUNION
...
...
dlls/windowscodecs/fliprotate.c
View file @
0012c26f
...
@@ -16,8 +16,6 @@
...
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/gifformat.c
View file @
0012c26f
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/icoformat.c
View file @
0012c26f
...
@@ -16,8 +16,6 @@
...
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/imgfactory.c
View file @
0012c26f
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <assert.h>
#include <assert.h>
#include <stdarg.h>
#include <stdarg.h>
...
...
dlls/windowscodecs/info.c
View file @
0012c26f
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
@@ -31,7 +29,6 @@
...
@@ -31,7 +29,6 @@
#include "wincodecs_private.h"
#include "wincodecs_private.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/list.h"
#include "wine/list.h"
#include "wine/rbtree.h"
#include "wine/rbtree.h"
#include "wine/heap.h"
#include "wine/heap.h"
...
@@ -612,7 +609,7 @@ static void read_bitmap_patterns(BitmapDecoderInfo *info)
...
@@ -612,7 +609,7 @@ static void read_bitmap_patterns(BitmapDecoderInfo *info)
for
(
i
=
0
;
res
==
ERROR_SUCCESS
&&
i
<
pattern_count
;
i
++
)
for
(
i
=
0
;
res
==
ERROR_SUCCESS
&&
i
<
pattern_count
;
i
++
)
{
{
s
nprintfW
(
subkeyname
,
11
,
uintformatW
,
i
);
s
wprintf
(
subkeyname
,
11
,
uintformatW
,
i
);
res
=
RegOpenKeyExW
(
patternskey
,
subkeyname
,
0
,
KEY_READ
,
&
patternkey
);
res
=
RegOpenKeyExW
(
patternskey
,
subkeyname
,
0
,
KEY_READ
,
&
patternkey
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
if
(
res
!=
ERROR_SUCCESS
)
break
;
...
@@ -648,7 +645,7 @@ static void read_bitmap_patterns(BitmapDecoderInfo *info)
...
@@ -648,7 +645,7 @@ static void read_bitmap_patterns(BitmapDecoderInfo *info)
for
(
i
=
0
;
res
==
ERROR_SUCCESS
&&
i
<
pattern_count
;
i
++
)
for
(
i
=
0
;
res
==
ERROR_SUCCESS
&&
i
<
pattern_count
;
i
++
)
{
{
s
nprintfW
(
subkeyname
,
11
,
uintformatW
,
i
);
s
wprintf
(
subkeyname
,
11
,
uintformatW
,
i
);
res
=
RegOpenKeyExW
(
patternskey
,
subkeyname
,
0
,
KEY_READ
,
&
patternkey
);
res
=
RegOpenKeyExW
(
patternskey
,
subkeyname
,
0
,
KEY_READ
,
&
patternkey
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
if
(
res
!=
ERROR_SUCCESS
)
break
;
...
@@ -1423,7 +1420,7 @@ static HRESULT WINAPI PixelFormatInfo_GetChannelMask(IWICPixelFormatInfo2 *iface
...
@@ -1423,7 +1420,7 @@ static HRESULT WINAPI PixelFormatInfo_GetChannelMask(IWICPixelFormatInfo2 *iface
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
s
nprintfW
(
valuename
,
11
,
uintformatW
,
uiChannelIndex
);
s
wprintf
(
valuename
,
11
,
uintformatW
,
uiChannelIndex
);
cbData
=
cbMaskBuffer
;
cbData
=
cbMaskBuffer
;
...
@@ -1903,7 +1900,7 @@ static void read_metadata_patterns(MetadataReaderInfo *info, GUID *container_gui
...
@@ -1903,7 +1900,7 @@ static void read_metadata_patterns(MetadataReaderInfo *info, GUID *container_gui
for
(
i
=
0
;
res
==
ERROR_SUCCESS
&&
i
<
pattern_count
;
i
++
)
for
(
i
=
0
;
res
==
ERROR_SUCCESS
&&
i
<
pattern_count
;
i
++
)
{
{
s
nprintfW
(
subkeyname
,
11
,
uintformatW
,
i
);
s
wprintf
(
subkeyname
,
11
,
uintformatW
,
i
);
res
=
RegOpenKeyExW
(
guid_key
,
subkeyname
,
0
,
KEY_READ
,
&
patternkey
);
res
=
RegOpenKeyExW
(
guid_key
,
subkeyname
,
0
,
KEY_READ
,
&
patternkey
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
if
(
res
!=
ERROR_SUCCESS
)
break
;
...
@@ -1938,7 +1935,7 @@ static void read_metadata_patterns(MetadataReaderInfo *info, GUID *container_gui
...
@@ -1938,7 +1935,7 @@ static void read_metadata_patterns(MetadataReaderInfo *info, GUID *container_gui
for
(
i
=
0
;
res
==
ERROR_SUCCESS
&&
i
<
pattern_count
;
i
++
)
for
(
i
=
0
;
res
==
ERROR_SUCCESS
&&
i
<
pattern_count
;
i
++
)
{
{
s
nprintfW
(
subkeyname
,
11
,
uintformatW
,
i
);
s
wprintf
(
subkeyname
,
11
,
uintformatW
,
i
);
res
=
RegOpenKeyExW
(
guid_key
,
subkeyname
,
0
,
KEY_READ
,
&
patternkey
);
res
=
RegOpenKeyExW
(
guid_key
,
subkeyname
,
0
,
KEY_READ
,
&
patternkey
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
if
(
res
!=
ERROR_SUCCESS
)
break
;
...
...
dlls/windowscodecs/main.c
View file @
0012c26f
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
#define COBJMACROS
#define COBJMACROS
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
...
...
dlls/windowscodecs/metadatahandler.c
View file @
0012c26f
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
...
...
dlls/windowscodecs/metadataquery.c
View file @
0012c26f
...
@@ -17,9 +17,8 @@
...
@@ -17,9 +17,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#include <wchar.h>
#define COBJMACROS
#define COBJMACROS
#define NONAMELESSUNION
#define NONAMELESSUNION
...
@@ -201,7 +200,7 @@ static HRESULT get_token(struct string_t *elem, PROPVARIANT *id, PROPVARIANT *sc
...
@@ -201,7 +200,7 @@ static HRESULT get_token(struct string_t *elem, PROPVARIANT *id, PROPVARIANT *sc
if
(
start
[
1
]
<
'0'
||
start
[
1
]
>
'9'
)
return
DISP_E_TYPEMISMATCH
;
if
(
start
[
1
]
<
'0'
||
start
[
1
]
>
'9'
)
return
DISP_E_TYPEMISMATCH
;
*
idx
=
strtolW
(
start
+
1
,
&
idx_end
,
10
);
*
idx
=
wcstol
(
start
+
1
,
&
idx_end
,
10
);
if
(
idx_end
>
elem
->
str
+
elem
->
len
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
if
(
idx_end
>
elem
->
str
+
elem
->
len
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
if
(
*
idx_end
!=
']'
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
if
(
*
idx_end
!=
']'
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
if
(
*
idx
<
0
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
if
(
*
idx
<
0
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
...
@@ -225,7 +224,7 @@ static HRESULT get_token(struct string_t *elem, PROPVARIANT *id, PROPVARIANT *sc
...
@@ -225,7 +224,7 @@ static HRESULT get_token(struct string_t *elem, PROPVARIANT *id, PROPVARIANT *sc
VARTYPE
vt
;
VARTYPE
vt
;
PROPVARIANT
next_token
;
PROPVARIANT
next_token
;
end
=
memchrW
(
start
+
1
,
'='
,
elem
->
len
-
1
);
end
=
wmemchr
(
start
+
1
,
'='
,
elem
->
len
-
1
);
if
(
!
end
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
if
(
!
end
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
if
(
end
>
elem
->
str
+
elem
->
len
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
if
(
end
>
elem
->
str
+
elem
->
len
)
return
WINCODEC_ERR_INVALIDQUERYREQUEST
;
...
@@ -312,10 +311,10 @@ static HRESULT get_token(struct string_t *elem, PROPVARIANT *id, PROPVARIANT *sc
...
@@ -312,10 +311,10 @@ static HRESULT get_token(struct string_t *elem, PROPVARIANT *id, PROPVARIANT *sc
return
S_OK
;
return
S_OK
;
}
}
end
=
memchrW
(
start
,
'/'
,
elem
->
len
);
end
=
wmemchr
(
start
,
'/'
,
elem
->
len
);
if
(
!
end
)
end
=
start
+
elem
->
len
;
if
(
!
end
)
end
=
start
+
elem
->
len
;
p
=
memchrW
(
start
,
':'
,
end
-
start
);
p
=
wmemchr
(
start
,
':'
,
end
-
start
);
if
(
p
)
if
(
p
)
{
{
next_elem
.
str
=
p
+
1
;
next_elem
.
str
=
p
+
1
;
...
@@ -885,7 +884,7 @@ static const WCHAR *map_shortname_to_schema(const GUID *format, const WCHAR *nam
...
@@ -885,7 +884,7 @@ static const WCHAR *map_shortname_to_schema(const GUID *format, const WCHAR *nam
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
name2schema
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
name2schema
);
i
++
)
{
{
if
(
!
lstrcmpW
(
name2schema
[
i
].
name
,
name
))
if
(
!
wcscmp
(
name2schema
[
i
].
name
,
name
))
return
name2schema
[
i
].
schema
;
return
name2schema
[
i
].
schema
;
}
}
...
@@ -910,7 +909,7 @@ HRESULT WINAPI WICMapSchemaToName(REFGUID format, LPWSTR schema, UINT len, WCHAR
...
@@ -910,7 +909,7 @@ HRESULT WINAPI WICMapSchemaToName(REFGUID format, LPWSTR schema, UINT len, WCHAR
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
name2schema
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
name2schema
);
i
++
)
{
{
if
(
!
lstrcmpW
(
name2schema
[
i
].
schema
,
schema
))
if
(
!
wcscmp
(
name2schema
[
i
].
schema
,
schema
))
{
{
if
(
name
)
if
(
name
)
{
{
...
...
dlls/windowscodecs/palette.c
View file @
0012c26f
...
@@ -18,8 +18,6 @@
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/pngformat.c
View file @
0012c26f
...
@@ -17,9 +17,6 @@
...
@@ -17,9 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#define NONAMELESSUNION
#define NONAMELESSUNION
...
...
dlls/windowscodecs/propertybag.c
View file @
0012c26f
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
@@ -26,7 +24,6 @@
...
@@ -26,7 +24,6 @@
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "objbase.h"
#include "objbase.h"
#include "wine/unicode.h"
#include "wincodecs_private.h"
#include "wincodecs_private.h"
...
@@ -117,7 +114,7 @@ static LONG find_item(PropertyBag *This, LPCOLESTR name)
...
@@ -117,7 +114,7 @@ static LONG find_item(PropertyBag *This, LPCOLESTR name)
for
(
i
=
0
;
i
<
This
->
prop_count
;
i
++
)
for
(
i
=
0
;
i
<
This
->
prop_count
;
i
++
)
{
{
if
(
strcmpW
(
name
,
This
->
properties
[
i
].
pstrName
)
==
0
)
if
(
wcscmp
(
name
,
This
->
properties
[
i
].
pstrName
)
==
0
)
return
i
;
return
i
;
}
}
...
@@ -220,11 +217,11 @@ static HRESULT copy_propbag2(PROPBAG2 *dest, const PROPBAG2 *src)
...
@@ -220,11 +217,11 @@ static HRESULT copy_propbag2(PROPBAG2 *dest, const PROPBAG2 *src)
dest
->
dwHint
=
src
->
dwHint
;
dest
->
dwHint
=
src
->
dwHint
;
dest
->
dwType
=
src
->
dwType
;
dest
->
dwType
=
src
->
dwType
;
dest
->
vt
=
src
->
vt
;
dest
->
vt
=
src
->
vt
;
dest
->
pstrName
=
CoTaskMemAlloc
((
strlenW
(
src
->
pstrName
)
+
1
)
*
sizeof
(
WCHAR
));
dest
->
pstrName
=
CoTaskMemAlloc
((
l
strlenW
(
src
->
pstrName
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
dest
->
pstrName
)
if
(
!
dest
->
pstrName
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
strcpyW
(
dest
->
pstrName
,
src
->
pstrName
);
l
strcpyW
(
dest
->
pstrName
,
src
->
pstrName
);
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/windowscodecs/proxy.c
View file @
0012c26f
...
@@ -18,8 +18,6 @@
...
@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/regsvr.c
View file @
0012c26f
...
@@ -31,7 +31,6 @@
...
@@ -31,7 +31,6 @@
#include "ocidl.h"
#include "ocidl.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wincodecs_private.h"
#include "wincodecs_private.h"
...
@@ -307,7 +306,7 @@ static HRESULT register_decoders(struct regsvr_decoder const *list)
...
@@ -307,7 +306,7 @@ static HRESULT register_decoders(struct regsvr_decoder const *list)
{
{
HKEY
pattern_key
;
HKEY
pattern_key
;
static
const
WCHAR
int_format
[]
=
{
'%'
,
'i'
,
0
};
static
const
WCHAR
int_format
[]
=
{
'%'
,
'i'
,
0
};
s
nprintfW
(
buf
,
39
,
int_format
,
i
);
s
wprintf
(
buf
,
39
,
int_format
,
i
);
res
=
RegCreateKeyExW
(
patterns_key
,
buf
,
0
,
NULL
,
0
,
res
=
RegCreateKeyExW
(
patterns_key
,
buf
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
pattern_key
,
NULL
);
KEY_READ
|
KEY_WRITE
,
NULL
,
&
pattern_key
,
NULL
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
if
(
res
!=
ERROR_SUCCESS
)
break
;
...
@@ -853,7 +852,7 @@ static HRESULT register_metadatareaders(struct regsvr_metadatareader const *list
...
@@ -853,7 +852,7 @@ static HRESULT register_metadatareaders(struct regsvr_metadatareader const *list
{
{
HKEY
pattern_key
;
HKEY
pattern_key
;
static
const
WCHAR
int_format
[]
=
{
'%'
,
'i'
,
0
};
static
const
WCHAR
int_format
[]
=
{
'%'
,
'i'
,
0
};
s
nprintfW
(
buf
,
39
,
int_format
,
i
);
s
wprintf
(
buf
,
39
,
int_format
,
i
);
res
=
RegCreateKeyExW
(
format_key
,
buf
,
0
,
NULL
,
0
,
res
=
RegCreateKeyExW
(
format_key
,
buf
,
0
,
NULL
,
0
,
KEY_READ
|
KEY_WRITE
,
NULL
,
&
pattern_key
,
NULL
);
KEY_READ
|
KEY_WRITE
,
NULL
,
&
pattern_key
,
NULL
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
if
(
res
!=
ERROR_SUCCESS
)
break
;
...
@@ -1044,7 +1043,7 @@ static HRESULT register_pixelformats(struct regsvr_pixelformat const *list)
...
@@ -1044,7 +1043,7 @@ static HRESULT register_pixelformats(struct regsvr_pixelformat const *list)
if
(
res
!=
ERROR_SUCCESS
)
goto
error_close_clsid_key
;
if
(
res
!=
ERROR_SUCCESS
)
goto
error_close_clsid_key
;
for
(
i
=
0
;
i
<
list
->
channelcount
;
i
++
)
for
(
i
=
0
;
i
<
list
->
channelcount
;
i
++
)
{
{
s
printfW
(
mask_valuename
,
valuename_format
,
i
);
s
wprintf
(
mask_valuename
,
ARRAY_SIZE
(
mask_valuename
)
,
valuename_format
,
i
);
res
=
RegSetValueExW
(
masks_key
,
mask_valuename
,
0
,
REG_BINARY
,
res
=
RegSetValueExW
(
masks_key
,
mask_valuename
,
0
,
REG_BINARY
,
list
->
channelmasks
[
i
],
mask_size
);
list
->
channelmasks
[
i
],
mask_size
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
if
(
res
!=
ERROR_SUCCESS
)
break
;
...
...
dlls/windowscodecs/scaler.c
View file @
0012c26f
...
@@ -17,8 +17,6 @@
...
@@ -17,8 +17,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/tgaformat.c
View file @
0012c26f
...
@@ -16,9 +16,6 @@
...
@@ -16,9 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#define COBJMACROS
#define COBJMACROS
...
...
dlls/windowscodecs/unix_iface.c
View file @
0012c26f
...
@@ -18,9 +18,6 @@
...
@@ -18,9 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#define NONAMELESSUNION
#define NONAMELESSUNION
...
...
dlls/windowscodecs/wincodecs_private.h
View file @
0012c26f
...
@@ -23,7 +23,6 @@
...
@@ -23,7 +23,6 @@
#include "wincodecsdk.h"
#include "wincodecsdk.h"
#include "wine/debug.h"
#include "wine/debug.h"
#include "wine/unicode.h"
DEFINE_GUID
(
CLSID_WineTgaDecoder
,
0xb11fc79a
,
0x67cc
,
0x43e6
,
0xa9
,
0xce
,
0xe3
,
0xd5
,
0x49
,
0x45
,
0xd3
,
0x04
);
DEFINE_GUID
(
CLSID_WineTgaDecoder
,
0xb11fc79a
,
0x67cc
,
0x43e6
,
0xa9
,
0xce
,
0xe3
,
0xd5
,
0x49
,
0x45
,
0xd3
,
0x04
);
...
@@ -238,7 +237,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *src)
...
@@ -238,7 +237,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *src)
WCHAR
*
dst
;
WCHAR
*
dst
;
SIZE_T
len
;
SIZE_T
len
;
if
(
!
src
)
return
NULL
;
if
(
!
src
)
return
NULL
;
len
=
(
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
);
len
=
(
l
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
);
if
((
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
)))
memcpy
(
dst
,
src
,
len
);
if
((
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
)))
memcpy
(
dst
,
src
,
len
);
return
dst
;
return
dst
;
}
}
...
@@ -277,7 +276,7 @@ struct decoder_frame
...
@@ -277,7 +276,7 @@ struct decoder_frame
CLSID
pixel_format
;
CLSID
pixel_format
;
UINT
width
,
height
;
UINT
width
,
height
;
UINT
bpp
;
UINT
bpp
;
double
dpix
,
dpiy
;
DOUBLE
dpix
,
dpiy
;
DWORD
num_color_contexts
;
DWORD
num_color_contexts
;
DWORD
num_colors
;
DWORD
num_colors
;
WICColor
palette
[
256
];
WICColor
palette
[
256
];
...
@@ -371,7 +370,7 @@ struct encoder_frame
...
@@ -371,7 +370,7 @@ struct encoder_frame
UINT
width
,
height
;
UINT
width
,
height
;
UINT
bpp
;
UINT
bpp
;
BOOL
indexed
;
BOOL
indexed
;
double
dpix
,
dpiy
;
DOUBLE
dpix
,
dpiy
;
DWORD
num_colors
;
DWORD
num_colors
;
WICColor
palette
[
256
];
WICColor
palette
[
256
];
/* encoder options */
/* encoder options */
...
...
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