Code in DdsDecoder_Initialize() is moved to DdsDecoder_Wine_Initialize(). And DdsDecoder_Initialize() is implemented on top of DdsDecoder_Wine_Initialize().
Signed-off-by: Ziqing Hui zhui@codeweavers.com ---
v2: Lock critical section in DdsDecoder_Initialize().
dlls/windowscodecs/ddsformat.c | 125 +++++++++++++++------------ dlls/windowscodecs/tests/ddsformat.c | 3 - 2 files changed, 72 insertions(+), 56 deletions(-)
I think the lock should already be held during the call to IWICWineDecoder_Initialize. I don't want to think about what will happen if some other thread grabs the lock between that and checking the file type.