https://bugs.winehq.org/show_bug.cgi?id=38596
--- Comment #4 from Daniel dansemail4bugzilla@gmail.com --- (In reply to Anastasius Focht from comment #2)
The 64-bit version of Photo Ninja works fine after working around color profile problem or overriding 64-bit msvcr90.dll (the app already ships a bundled version).
I haven't had any luck with the 64 bit version, even after copying the color profile file to the drive_c/windows/system32/spool/drivers/color directory and overriding msvcr90.dll. Maybe I'm doing something wrong, but if I use winecfg to set it as (native,builtin), it doesn't seem to make a difference (it crashes with the C++ exception that you referenced in the other bug). If I set it to just native, then it crashes complaining that it can't find the DLLs.
The 64-bit code initializes the same structure differently (size is also doubled to 0x30 due to 64-bit). I don't want to post all the 64-bit disassembly for comparison here. If you want to look/debug on your own, 0x1406f3a70 is the 64-bit app code equivalent to 32-bit app code 0xa14510 (with 0x1406f5cdc being struc init)
The 32-bit app should crash/exit the same way on Windows if heap debugging/poisoning is activated, for example running the app with a debugger. This prevents .m5 ever having zero value after allocation (.m5 == NULL skips the initial copy).
For 32-bit it's IMHO a WONTFIX unless the publisher/developer of the app fixes their code.
$ sha1sum Install_PhotoNinja32_1.2.5.exe 51ef332f33941c99208fde57444bcac9be79f3cc Install_PhotoNinja32_1.2.5.exe
$ du -sh Install_PhotoNinja32_1.2.5.exe 12M Install_PhotoNinja32_1.2.5.exe
$ wine --version wine-1.7.43
Regards
Thanks for taking the time to look at it. If it's confirmed that this is a bug with the app and not with Wine, I will try reporting it to the developer.