[Bug 45709] New: djkaty.com Simple2D demos v1.13 need support for IWICImagingFactory2, CLSID '{317d06e8-5f24-433d-bdf7-79ce68d8abc2}'

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Aug 26 06:54:02 CDT 2018


https://bugs.winehq.org/show_bug.cgi?id=45709

            Bug ID: 45709
           Summary: djkaty.com Simple2D demos v1.13 need support for
                    IWICImagingFactory2, CLSID
                    '{317d06e8-5f24-433d-bdf7-79ce68d8abc2}'
           Product: Wine
           Version: 3.14
          Hardware: x86-64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: windowscodecs
          Assignee: wine-bugs at winehq.org
          Reporter: focht at gmx.net
      Distribution: ---

Hello folks,

split off from bug 45708

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files (x86)/DJKaty.com/Simple2D/examples

$ WINEDEBUG=+seh,+relay,+windowscodecs wine ./BitmapBrushDemo.exe >>log.txt
2>&1
...
002e:Ret  dwrite.DWriteCreateFactory() retval=00000000 ret=004057a3
002e:Call ole32.CoCreateInstance(00426c70,00000000,00000001,004262c8,0033fd60)
ret=004057ee
002e:Call ntdll.RtlInitUnicodeString(0033f504,7dd601e0
L"\\Registry\\Machine\\Software\\Classes") ret=7dc93c71
002e:Ret  ntdll.RtlInitUnicodeString() retval=0033f504 ret=7dc93c71
---
002e:Call ntdll.RtlInitUnicodeString(0033f5a0,0033f5f2
L"CLSID\\{317D06E8-5F24-433D-BDF7-79CE68D8ABC2}") ret=7dc93f02
002e:Ret  ntdll.RtlInitUnicodeString() retval=0033f5a0 ret=7dc93f02
...
002e:Call PE DLL (proc=0x7d510dd1,module=0x7d490000
L"windowscodecs.dll",reason=PROCESS_ATTACH,res=(nil))
...
002e:Ret  PE DLL (proc=0x7d510dd1,module=0x7d490000
L"windowscodecs.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1
002e:Ret  KERNEL32.LoadLibraryExW() retval=7d490000 ret=7dc9405a
...
002e:Ret  windowscodecs.DllGetClassObject() retval=80040111 ret=7dc96205
002e:err:ole:apartment_getclassobject DllGetClassObject returned error
0x80040111 for dll L"C:\\windows\\system32\\windowscodecs.dll"
002e:Call advapi32.RegCloseKey(00000064) ret=7dc995f9
002e:Ret  advapi32.RegCloseKey() retval=00000000 ret=7dc995f9
002e:err:ole:CoGetClassObject no class object
{317d06e8-5f24-433d-bdf7-79ce68d8abc2} could be created for context 0x1
002e:Ret  ole32.CoCreateInstance() retval=80040111 ret=004057ee
002e:Call user32.MessageBoxA(00000000,004266ac "There was a problem setting up
the WIC Imaging factory",004265a0 "Simple2D Error",00000000) ret=00405808 
--- snip ---

App sources:

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files (x86)/DJKaty.com/Simple2D

$ grep -Hrni IWICImagingFactory2
...
src/Simple2DLib.h:1787:    IWICImagingFactory2 *ImageFactory;

$ cat src/Simple2D.cpp

...

// Create Direct2D resources
// Device-independent resources last for the lifetime of the application
// Device-dependent resources are associated with a particular rendering device
and will cease to function if that device is removed
HRESULT Simple2D::CreateDeviceIndependentResources()
{
    // Create a Direct2D factory
    if (!Direct2D)
    {
        D2D1_FACTORY_OPTIONS options;
        ZeroMemory(&options, sizeof(D2D1_FACTORY_OPTIONS));

        HRReturnOnFail(
            D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED,
__uuidof(ID2D1Factory1), &options, reinterpret_cast<void **>(&Direct2D)),
            "There was a problem setting up the Direct2D factory");
    }

    // Create a DirectWrite factory
    if (!TextFactory)
        HRReturnOnFail(
            DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED,
__uuidof(TextFactory),
                                    reinterpret_cast<IUnknown
**>(&TextFactory)),
            "There was a problem setting up the DirectWrite factory");

    // Create a Windows Imaging factory
    if (!ImageFactory)
        HRReturnOnFail(
            CoCreateInstance(CLSID_WICImagingFactory, NULL,
CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&ImageFactory)),
            "There was a problem setting up the WIC Imaging factory");
...
--- snip ---

https://docs.microsoft.com/en-us/windows/desktop/api/wincodec/nn-wincodec-iwicimagingfactory2

$ sha1sum Simple2DSetup-1.13.exe 
269c002fb9ea11c2abd8958fc3cc4294af1b45d9  Simple2DSetup-1.13.exe

$ du -sh Simple2DSetup-1.13.exe 
11M    Simple2DSetup-1.13.exe

$ wine --version
wine-3.14-161-g70fbfa2cb8

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list