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
4e49c370
Commit
4e49c370
authored
Feb 21, 2024
by
Paul Gofman
Committed by
Alexandre Julliard
Feb 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Force debug info in critical sections.
parent
fae3b7a9
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
21 additions
and
21 deletions
+21
-21
bitmap.c
dlls/windowscodecs/bitmap.c
+1
-1
bmpdecode.c
dlls/windowscodecs/bmpdecode.c
+1
-1
clipper.c
dlls/windowscodecs/clipper.c
+1
-1
converter.c
dlls/windowscodecs/converter.c
+1
-1
ddsformat.c
dlls/windowscodecs/ddsformat.c
+3
-3
decoder.c
dlls/windowscodecs/decoder.c
+1
-1
encoder.c
dlls/windowscodecs/encoder.c
+1
-1
fliprotate.c
dlls/windowscodecs/fliprotate.c
+1
-1
gifformat.c
dlls/windowscodecs/gifformat.c
+2
-2
icoformat.c
dlls/windowscodecs/icoformat.c
+1
-1
info.c
dlls/windowscodecs/info.c
+2
-2
metadatahandler.c
dlls/windowscodecs/metadatahandler.c
+1
-1
palette.c
dlls/windowscodecs/palette.c
+1
-1
scaler.c
dlls/windowscodecs/scaler.c
+1
-1
stream.c
dlls/windowscodecs/stream.c
+2
-2
tgaformat.c
dlls/windowscodecs/tgaformat.c
+1
-1
No files found.
dlls/windowscodecs/bitmap.c
View file @
4e49c370
...
@@ -825,7 +825,7 @@ HRESULT BitmapImpl_Create(UINT uiWidth, UINT uiHeight, UINT stride, UINT datasiz
...
@@ -825,7 +825,7 @@ HRESULT BitmapImpl_Create(UINT uiWidth, UINT uiHeight, UINT stride, UINT datasiz
This
->
bpp
=
bpp
;
This
->
bpp
=
bpp
;
memcpy
(
&
This
->
pixelformat
,
pixelFormat
,
sizeof
(
GUID
));
memcpy
(
&
This
->
pixelformat
,
pixelFormat
,
sizeof
(
GUID
));
This
->
dpix
=
This
->
dpiy
=
0
.
0
;
This
->
dpix
=
This
->
dpiy
=
0
.
0
;
InitializeCriticalSection
(
&
This
->
cs
);
InitializeCriticalSection
Ex
(
&
This
->
cs
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BitmapImpl.lock"
);
This
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BitmapImpl.lock"
);
*
ppIBitmap
=
&
This
->
IWICBitmap_iface
;
*
ppIBitmap
=
&
This
->
IWICBitmap_iface
;
...
...
dlls/windowscodecs/bmpdecode.c
View file @
4e49c370
...
@@ -1161,7 +1161,7 @@ static HRESULT BmpDecoder_Create(int packed, int icoframe, BmpDecoder **ppDecode
...
@@ -1161,7 +1161,7 @@ static HRESULT BmpDecoder_Create(int packed, int icoframe, BmpDecoder **ppDecode
This
->
initialized
=
FALSE
;
This
->
initialized
=
FALSE
;
This
->
stream
=
NULL
;
This
->
stream
=
NULL
;
This
->
imagedata
=
NULL
;
This
->
imagedata
=
NULL
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BmpDecoder.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BmpDecoder.lock"
);
This
->
packed
=
packed
;
This
->
packed
=
packed
;
This
->
icoframe
=
icoframe
;
This
->
icoframe
=
icoframe
;
...
...
dlls/windowscodecs/clipper.c
View file @
4e49c370
...
@@ -250,7 +250,7 @@ HRESULT BitmapClipper_Create(IWICBitmapClipper **clipper)
...
@@ -250,7 +250,7 @@ HRESULT BitmapClipper_Create(IWICBitmapClipper **clipper)
This
->
IWICBitmapClipper_iface
.
lpVtbl
=
&
BitmapClipper_Vtbl
;
This
->
IWICBitmapClipper_iface
.
lpVtbl
=
&
BitmapClipper_Vtbl
;
This
->
ref
=
1
;
This
->
ref
=
1
;
This
->
source
=
NULL
;
This
->
source
=
NULL
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BitmapClipper.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BitmapClipper.lock"
);
*
clipper
=
&
This
->
IWICBitmapClipper_iface
;
*
clipper
=
&
This
->
IWICBitmapClipper_iface
;
...
...
dlls/windowscodecs/converter.c
View file @
4e49c370
...
@@ -1843,7 +1843,7 @@ HRESULT FormatConverter_CreateInstance(REFIID iid, void** ppv)
...
@@ -1843,7 +1843,7 @@ HRESULT FormatConverter_CreateInstance(REFIID iid, void** ppv)
This
->
ref
=
1
;
This
->
ref
=
1
;
This
->
source
=
NULL
;
This
->
source
=
NULL
;
This
->
palette
=
NULL
;
This
->
palette
=
NULL
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": FormatConverter.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": FormatConverter.lock"
);
ret
=
IWICFormatConverter_QueryInterface
(
&
This
->
IWICFormatConverter_iface
,
iid
,
ppv
);
ret
=
IWICFormatConverter_QueryInterface
(
&
This
->
IWICFormatConverter_iface
,
iid
,
ppv
);
...
...
dlls/windowscodecs/ddsformat.c
View file @
4e49c370
...
@@ -1051,7 +1051,7 @@ static HRESULT DdsFrameDecode_CreateInstance(DdsFrameDecode **frame_decode)
...
@@ -1051,7 +1051,7 @@ static HRESULT DdsFrameDecode_CreateInstance(DdsFrameDecode **frame_decode)
result
->
IWICBitmapFrameDecode_iface
.
lpVtbl
=
&
DdsFrameDecode_Vtbl
;
result
->
IWICBitmapFrameDecode_iface
.
lpVtbl
=
&
DdsFrameDecode_Vtbl
;
result
->
IWICDdsFrameDecode_iface
.
lpVtbl
=
&
DdsFrameDecode_Dds_Vtbl
;
result
->
IWICDdsFrameDecode_iface
.
lpVtbl
=
&
DdsFrameDecode_Dds_Vtbl
;
result
->
ref
=
1
;
result
->
ref
=
1
;
InitializeCriticalSection
(
&
result
->
lock
);
InitializeCriticalSection
Ex
(
&
result
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
result
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": DdsFrameDecode.lock"
);
result
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": DdsFrameDecode.lock"
);
*
frame_decode
=
result
;
*
frame_decode
=
result
;
...
@@ -1761,7 +1761,7 @@ HRESULT DdsDecoder_CreateInstance(REFIID iid, void** ppv)
...
@@ -1761,7 +1761,7 @@ HRESULT DdsDecoder_CreateInstance(REFIID iid, void** ppv)
This
->
ref
=
1
;
This
->
ref
=
1
;
This
->
initialized
=
FALSE
;
This
->
initialized
=
FALSE
;
This
->
stream
=
NULL
;
This
->
stream
=
NULL
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": DdsDecoder.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": DdsDecoder.lock"
);
ret
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
ret
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
...
@@ -2140,7 +2140,7 @@ HRESULT DdsEncoder_CreateInstance( REFIID iid, void **ppv)
...
@@ -2140,7 +2140,7 @@ HRESULT DdsEncoder_CreateInstance( REFIID iid, void **ppv)
This
->
frame_index
=
0
;
This
->
frame_index
=
0
;
This
->
uncommitted_frame
=
FALSE
;
This
->
uncommitted_frame
=
FALSE
;
This
->
committed
=
FALSE
;
This
->
committed
=
FALSE
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": DdsEncoder.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": DdsEncoder.lock"
);
ret
=
IWICBitmapEncoder_QueryInterface
(
&
This
->
IWICBitmapEncoder_iface
,
iid
,
ppv
);
ret
=
IWICBitmapEncoder_QueryInterface
(
&
This
->
IWICBitmapEncoder_iface
,
iid
,
ppv
);
...
...
dlls/windowscodecs/decoder.c
View file @
4e49c370
...
@@ -797,7 +797,7 @@ HRESULT CommonDecoder_CreateInstance(struct decoder *decoder,
...
@@ -797,7 +797,7 @@ HRESULT CommonDecoder_CreateInstance(struct decoder *decoder,
This
->
stream
=
NULL
;
This
->
stream
=
NULL
;
This
->
decoder
=
decoder
;
This
->
decoder
=
decoder
;
This
->
decoder_info
=
*
decoder_info
;
This
->
decoder_info
=
*
decoder_info
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": CommonDecoder.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": CommonDecoder.lock"
);
hr
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
hr
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
...
...
dlls/windowscodecs/encoder.c
View file @
4e49c370
...
@@ -889,7 +889,7 @@ HRESULT CommonEncoder_CreateInstance(struct encoder *encoder,
...
@@ -889,7 +889,7 @@ HRESULT CommonEncoder_CreateInstance(struct encoder *encoder,
This
->
frame_count
=
0
;
This
->
frame_count
=
0
;
This
->
uncommitted_frame
=
FALSE
;
This
->
uncommitted_frame
=
FALSE
;
This
->
committed
=
FALSE
;
This
->
committed
=
FALSE
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": CommonEncoder.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": CommonEncoder.lock"
);
ret
=
IWICBitmapEncoder_QueryInterface
(
&
This
->
IWICBitmapEncoder_iface
,
iid
,
ppv
);
ret
=
IWICBitmapEncoder_QueryInterface
(
&
This
->
IWICBitmapEncoder_iface
,
iid
,
ppv
);
...
...
dlls/windowscodecs/fliprotate.c
View file @
4e49c370
...
@@ -276,7 +276,7 @@ HRESULT FlipRotator_Create(IWICBitmapFlipRotator **fliprotator)
...
@@ -276,7 +276,7 @@ HRESULT FlipRotator_Create(IWICBitmapFlipRotator **fliprotator)
This
->
flip_x
=
0
;
This
->
flip_x
=
0
;
This
->
flip_y
=
0
;
This
->
flip_y
=
0
;
This
->
swap_xy
=
0
;
This
->
swap_xy
=
0
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": FlipRotator.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": FlipRotator.lock"
);
*
fliprotator
=
&
This
->
IWICBitmapFlipRotator_iface
;
*
fliprotator
=
&
This
->
IWICBitmapFlipRotator_iface
;
...
...
dlls/windowscodecs/gifformat.c
View file @
4e49c370
...
@@ -1415,7 +1415,7 @@ HRESULT GifDecoder_CreateInstance(REFIID iid, void** ppv)
...
@@ -1415,7 +1415,7 @@ HRESULT GifDecoder_CreateInstance(REFIID iid, void** ppv)
This
->
initialized
=
FALSE
;
This
->
initialized
=
FALSE
;
This
->
gif
=
NULL
;
This
->
gif
=
NULL
;
This
->
current_frame
=
0
;
This
->
current_frame
=
0
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": GifDecoder.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": GifDecoder.lock"
);
ret
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
ret
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
...
@@ -2481,7 +2481,7 @@ HRESULT GifEncoder_CreateInstance(REFIID iid, void **ppv)
...
@@ -2481,7 +2481,7 @@ HRESULT GifEncoder_CreateInstance(REFIID iid, void **ppv)
This
->
IWICBitmapEncoder_iface
.
lpVtbl
=
&
GifEncoder_Vtbl
;
This
->
IWICBitmapEncoder_iface
.
lpVtbl
=
&
GifEncoder_Vtbl
;
This
->
ref
=
1
;
This
->
ref
=
1
;
This
->
stream
=
NULL
;
This
->
stream
=
NULL
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": GifEncoder.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": GifEncoder.lock"
);
This
->
initialized
=
FALSE
;
This
->
initialized
=
FALSE
;
This
->
info_written
=
FALSE
;
This
->
info_written
=
FALSE
;
...
...
dlls/windowscodecs/icoformat.c
View file @
4e49c370
...
@@ -770,7 +770,7 @@ HRESULT IcoDecoder_CreateInstance(REFIID iid, void** ppv)
...
@@ -770,7 +770,7 @@ HRESULT IcoDecoder_CreateInstance(REFIID iid, void** ppv)
This
->
ref
=
1
;
This
->
ref
=
1
;
This
->
stream
=
NULL
;
This
->
stream
=
NULL
;
This
->
initialized
=
FALSE
;
This
->
initialized
=
FALSE
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": IcoDecoder.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": IcoDecoder.lock"
);
ret
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
ret
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
...
...
dlls/windowscodecs/info.c
View file @
4e49c370
...
@@ -2291,7 +2291,7 @@ static HRESULT WINAPI ComponentEnum_Clone(IEnumUnknown *iface, IEnumUnknown **pp
...
@@ -2291,7 +2291,7 @@ static HRESULT WINAPI ComponentEnum_Clone(IEnumUnknown *iface, IEnumUnknown **pp
new_enum
->
ref
=
1
;
new_enum
->
ref
=
1
;
new_enum
->
cursor
=
NULL
;
new_enum
->
cursor
=
NULL
;
list_init
(
&
new_enum
->
objects
);
list_init
(
&
new_enum
->
objects
);
InitializeCriticalSection
(
&
new_enum
->
lock
);
InitializeCriticalSection
Ex
(
&
new_enum
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
new_enum
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": ComponentEnum.lock"
);
new_enum
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": ComponentEnum.lock"
);
EnterCriticalSection
(
&
This
->
lock
);
EnterCriticalSection
(
&
This
->
lock
);
...
@@ -2361,7 +2361,7 @@ HRESULT CreateComponentEnumerator(DWORD componentTypes, DWORD options, IEnumUnkn
...
@@ -2361,7 +2361,7 @@ HRESULT CreateComponentEnumerator(DWORD componentTypes, DWORD options, IEnumUnkn
This
->
IEnumUnknown_iface
.
lpVtbl
=
&
ComponentEnumVtbl
;
This
->
IEnumUnknown_iface
.
lpVtbl
=
&
ComponentEnumVtbl
;
This
->
ref
=
1
;
This
->
ref
=
1
;
list_init
(
&
This
->
objects
);
list_init
(
&
This
->
objects
);
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": ComponentEnum.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": ComponentEnum.lock"
);
for
(
category
=
categories
;
category
->
type
&&
hr
==
S_OK
;
category
++
)
for
(
category
=
categories
;
category
->
type
&&
hr
==
S_OK
;
category
++
)
...
...
dlls/windowscodecs/metadatahandler.c
View file @
4e49c370
...
@@ -410,7 +410,7 @@ HRESULT MetadataReader_Create(const MetadataHandlerVtbl *vtable, REFIID iid, voi
...
@@ -410,7 +410,7 @@ HRESULT MetadataReader_Create(const MetadataHandlerVtbl *vtable, REFIID iid, voi
This
->
items
=
NULL
;
This
->
items
=
NULL
;
This
->
item_count
=
0
;
This
->
item_count
=
0
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": MetadataHandler.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": MetadataHandler.lock"
);
hr
=
IWICMetadataWriter_QueryInterface
(
&
This
->
IWICMetadataWriter_iface
,
iid
,
ppv
);
hr
=
IWICMetadataWriter_QueryInterface
(
&
This
->
IWICMetadataWriter_iface
,
iid
,
ppv
);
...
...
dlls/windowscodecs/palette.c
View file @
4e49c370
...
@@ -906,7 +906,7 @@ HRESULT PaletteImpl_Create(IWICPalette **palette)
...
@@ -906,7 +906,7 @@ HRESULT PaletteImpl_Create(IWICPalette **palette)
This
->
count
=
0
;
This
->
count
=
0
;
This
->
colors
=
NULL
;
This
->
colors
=
NULL
;
This
->
type
=
WICBitmapPaletteTypeCustom
;
This
->
type
=
WICBitmapPaletteTypeCustom
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": PaletteImpl.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": PaletteImpl.lock"
);
*
palette
=
&
This
->
IWICPalette_iface
;
*
palette
=
&
This
->
IWICPalette_iface
;
...
...
dlls/windowscodecs/scaler.c
View file @
4e49c370
...
@@ -527,7 +527,7 @@ HRESULT BitmapScaler_Create(IWICBitmapScaler **scaler)
...
@@ -527,7 +527,7 @@ HRESULT BitmapScaler_Create(IWICBitmapScaler **scaler)
This
->
src_height
=
0
;
This
->
src_height
=
0
;
This
->
mode
=
0
;
This
->
mode
=
0
;
This
->
bpp
=
0
;
This
->
bpp
=
0
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BitmapScaler.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": BitmapScaler.lock"
);
*
scaler
=
&
This
->
IWICBitmapScaler_iface
;
*
scaler
=
&
This
->
IWICBitmapScaler_iface
;
...
...
dlls/windowscodecs/stream.c
View file @
4e49c370
...
@@ -1002,7 +1002,7 @@ static HRESULT WINAPI IWICStreamImpl_InitializeFromMemory(IWICStream *iface,
...
@@ -1002,7 +1002,7 @@ static HRESULT WINAPI IWICStreamImpl_InitializeFromMemory(IWICStream *iface,
pObject
->
pbMemory
=
pbBuffer
;
pObject
->
pbMemory
=
pbBuffer
;
pObject
->
dwMemsize
=
cbBufferSize
;
pObject
->
dwMemsize
=
cbBufferSize
;
pObject
->
dwCurPos
=
0
;
pObject
->
dwCurPos
=
0
;
InitializeCriticalSection
(
&
pObject
->
lock
);
InitializeCriticalSection
Ex
(
&
pObject
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
pObject
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": StreamOnMemory.lock"
);
pObject
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": StreamOnMemory.lock"
);
if
(
InterlockedCompareExchangePointer
((
void
**
)
&
This
->
pStream
,
pObject
,
NULL
))
if
(
InterlockedCompareExchangePointer
((
void
**
)
&
This
->
pStream
,
pObject
,
NULL
))
...
@@ -1107,7 +1107,7 @@ static HRESULT WINAPI IWICStreamImpl_InitializeFromIStreamRegion(IWICStream *ifa
...
@@ -1107,7 +1107,7 @@ static HRESULT WINAPI IWICStreamImpl_InitializeFromIStreamRegion(IWICStream *ifa
pObject
->
pos
.
QuadPart
=
0
;
pObject
->
pos
.
QuadPart
=
0
;
pObject
->
offset
=
ulOffset
;
pObject
->
offset
=
ulOffset
;
pObject
->
max_size
=
ulMaxSize
;
pObject
->
max_size
=
ulMaxSize
;
InitializeCriticalSection
(
&
pObject
->
lock
);
InitializeCriticalSection
Ex
(
&
pObject
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
pObject
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": StreamOnStreamRange.lock"
);
pObject
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": StreamOnStreamRange.lock"
);
if
(
InterlockedCompareExchangePointer
((
void
**
)
&
This
->
pStream
,
pObject
,
NULL
))
if
(
InterlockedCompareExchangePointer
((
void
**
)
&
This
->
pStream
,
pObject
,
NULL
))
...
...
dlls/windowscodecs/tgaformat.c
View file @
4e49c370
...
@@ -953,7 +953,7 @@ HRESULT TgaDecoder_CreateInstance(REFIID iid, void** ppv)
...
@@ -953,7 +953,7 @@ HRESULT TgaDecoder_CreateInstance(REFIID iid, void** ppv)
This
->
initialized
=
FALSE
;
This
->
initialized
=
FALSE
;
This
->
stream
=
NULL
;
This
->
stream
=
NULL
;
This
->
imagebits
=
NULL
;
This
->
imagebits
=
NULL
;
InitializeCriticalSection
(
&
This
->
lock
);
InitializeCriticalSection
Ex
(
&
This
->
lock
,
0
,
RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": TgaDecoder.lock"
);
This
->
lock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": TgaDecoder.lock"
);
ret
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
ret
=
IWICBitmapDecoder_QueryInterface
(
&
This
->
IWICBitmapDecoder_iface
,
iid
,
ppv
);
...
...
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