The 32-bitted Clipboard module
Fred Graute (114) 645 posts |
The 32-bitted Clipboard module still contains some 26-bit code that prevents it from working correctly. The routine MySendMessage (in s.WimpMsg) checks if it’s called in SVC or User mode using:
To work on 32-bit systems it needs something like this:
I’m raising this here rather than sending in a patch as James has indicated that further work would be done by someone else. If no-one has taken this up yet then I’d be happy to submit the required changes. |
Ben Avison (25) 445 posts |
Ouch. What about: MOV R14, PC AND R14, R14, #SVC_mode ; extract mode bits from 26-bit PC MRS R14, CPSR ; NOP on ARM2/3, works in any mode on later ARMs TST R14, #&F ; NE for any mode other than USR26 or USR32 |
Fred Graute (114) 645 posts |
Thanks Ben, that’s much better. |