[Bug 43670] New: MsPaint from Win7 does not start
https://bugs.winehq.org/show_bug.cgi?id=43670 Bug ID: 43670 Summary: MsPaint from Win7 does not start Product: Wine Version: 2.16 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: dark.shadow4(a)web.de Distribution: --- First you need a 32bit copy of mspaint from a win7 machine. You'll also need "winetricks mfc42". Program fails with a messagebox: "Failed to create empty document" -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #1 from Fabian Maurer <dark.shadow4(a)web.de> --- Still an issue with wine-4.0-rc3 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #2 from Fabian Maurer <dark.shadow4(a)web.de> --- On win10 the same thing happens when it doesn't find mspaint.exe.mui, e.g. by deleting that file. But on win7 it works even when that file is missing. Might be related, but not sure. Anyone else has some insights? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 Nikolay Sivov <bunglehead(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor --- Comment #3 from Nikolay Sivov <bunglehead(a)gmail.com> --- Since Paint is not redistributable, and could depend on some internals too, what's a point of having it working? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #4 from Fabian Maurer <dark.shadow4(a)web.de> --- It's used in the official uiribbon documentation as a bunch of examples, would make a good test case. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #5 from Fabian Maurer <dark.shadow4(a)web.de> --- Note that the error message comes from mfc42u, not from paint itself. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #6 from Fabian Maurer <dark.shadow4(a)web.de> --- Created attachment 63097 --> https://bugs.winehq.org/attachment.cgi?id=63097 Hack to get paint to start up As suspected, the problem here is that the mfc can't load the MUI resources. Now I don't know how exactly MUI works, so I have to investigate that first. In short, MFC tries to load a menu by calling LoadMenuW, and bails out when it doesn't work. All other strings are affected too, but that simply treats them as empty-strings. When forcing LoadMenuW to search in mspaint.exe.mui (and one has the dll), it works - at least it starts up. Pretty unusable since all other strings are missing too, but that's the same issue after all. Attaching a small hack to work around the issue - needs mspaint.exe.mui in the same folder as mspaint.exe. Also included an undocumented dll function, since that is called regularly by paint - you'll need that when you want to use it longer than one second or so. TL;DR: We need a MUI implementation for paint to work. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 Fabian Maurer <dark.shadow4(a)web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|MsPaint from Win7 does not |MsPaint from Win7 does not |start |start - missing MUI support -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #7 from Fabian Maurer <dark.shadow4(a)web.de> --- Created attachment 66952 --> https://bugs.winehq.org/attachment.cgi?id=66952 Updated hack Still present as of wine-5.5 (2b0977fc711e1faadfef69e3a46c2d1848b4826b) Attaching a rebased version of the hack. Please note that you also need a) native uiribbon b) the mspaint.exe.mui dll in the same directory as mspaint.exe -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 Robert Walker <bob.mt.wya(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bob.mt.wya(a)gmail.com -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 Julian Rüger <jr98(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jr98(a)gmx.net -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 Joel Holdsworth <joel(a)airwebreathe.org.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joel(a)airwebreathe.org.uk -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #8 from Fabian Maurer <dark.shadow4(a)web.de> --- Still open, here a big more details: https://forum.winehq.org/viewtopic.php?p=128021 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #9 from Nikolay Sivov <bunglehead(a)gmail.com> --- I still don't think it's a good idea to have this as a test application. If you really need uiribbon test case, it has to be easier to create a simple test for this specifically. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #10 from Fabian Maurer <dark.shadow4(a)web.de> --- Maybe you're right, not sure anymore. Still think it would be cool to have mspaint running, though. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 Louis Lenders <xerox.xerox2000x(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download CC| |xerox.xerox2000x(a)gmail.com URL| |https://win7games.com/downl | |oad/ClassicPaint.zip --- Comment #11 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- Hi, I'd like to revive this bug as I too like to get this running. Added downloadlink https://win7games.com/download/ClassicPaint.zip After applying Craig's patch from https://www.winehq.org/mailman3/hyperkitty/list/wine-devel(a)winehq.org/thre... (didn't get committed) and the patch for ntdll.WinSqmSetIfMaxDWORD from Fabian and using aforementioned native uiribbon mspaint.exe actually starts working quite ok with a bunch of native dlls @Fabian: Could you please submit the stub for ntdll.WinSqmSetIfMaxDWORD to wine-patches? Thanks in advance. I'll open a new bugreport for next issue. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #12 from Fabian Maurer <dark.shadow4(a)web.de> --- Sure, created https://gitlab.winehq.org/wine/wine/-/merge_requests/4015 In theory I wouldn't mind working on getting MUI support tested and upstreamed, but seeing how my MRs seem to mostly be ignored the last months... When you create the follow up issue(s), please link them here. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #13 from Louis Lenders <xerox.xerox2000x(a)gmail.com> --- (In reply to Fabian Maurer from comment #12)
Sure, created https://gitlab.winehq.org/wine/wine/-/merge_requests/4015 In theory I wouldn't mind working on getting MUI support tested and upstreamed, but seeing how my MRs seem to mostly be ignored the last months...
When you create the follow up issue(s), please link them here.
Thanks for sending in , I created 1st follow up issue here: https://bugs.winehq.org/show_bug.cgi?id=55713 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 --- Comment #14 from Fabian Maurer <dark.shadow4(a)web.de> --- Still present in wine-9.12. Craig still maintains a patch here (thanks!): https://github.com/cschuls/WineMUI.git I still plan to try and submit a patch for this someday, but so far I've been to busy/unmotivated. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 Artem S. Tashkinov <aros(a)gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |52215 -- 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.
https://bugs.winehq.org/show_bug.cgi?id=43670 flooferland(a)duck.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |flooferland(a)duck.com --- Comment #15 from flooferland(a)duck.com --- (In reply to Fabian Maurer from comment #14)
Still present in wine-9.12. Craig still maintains a patch here (thanks!): https://github.com/cschuls/WineMUI.git
I still plan to try and submit a patch for this someday, but so far I've been to busy/unmotivated.
I would love a patch! I unfortunately lack knowledge in the ancient craft of C so I can't work on anything Wine-related. The MS Paint from Windows 7 as well as all of the built-in MIUI apps are an important part of Windows history (and arguably some of the best Windows programs to date) Lots of people to this day still use Microsoft Paint for comedic purposes, and I've seen a lot of people in my social circles use it for genuine professional art since it gives off this gritty 2000s look to anything. There's a badge of honour when you say you drew something in MS Paint. I get this error when trying to load it with Wine which doesn't seem to be mentioned here: `err:module:import_dll Library MFC42u.dll (which is needed by L"C:\\windows\\system32\\mspaint.exe") not found` even though it is present -- 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.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla