Re: [新聞] (WIP) Cxbx: Fixing 0xC000007b error on 64-bit Window

看板Emulator (模擬器)作者 (ムカ着火ファイヤー)時間13年前 (2013/05/02 20:08), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
2013.05.02 I spent today hacking with the Cxbx code from Shogun's SVN branch and I have managed to prevent the 0xC000007b error from occuring on Windows 64-bit. Cxbx still doesn't run correctly due to the well known LDT/FS register issues, but at least it doesn't immediately get killed by Windows anymore. It turns out that the Cxbx code that produces a .exe file fills in the SizeOfImage field of the PE Header incorrectly, causing some versions of windows to prevent the image from loading. I solved this by patching Exe.cpp of the Cxbx project to write the final raw file size of the produced EXE to the SizeOfImage field. (Verified by CFF Explorer as being correct)    http://ppt.cc/~_x_ http://ppt.cc/5VAu http://ppt.cc/-1YB http://ppt.cc/Y8UR http://ppt.cc/7Jnx http://ppt.cc/Kkok ______________________________________________________________________________ 來源:http://www.ngemu.com/forums/showthread.php?t=156180 -- ポーラステーション http://perryt0517.wordpress.com/ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.168.21.237 ※ 編輯: conpo 來自: 118.168.21.237 (05/02 20:09)
文章代碼(AID): #1HWbT1Fu (Emulator)
文章代碼(AID): #1HWbT1Fu (Emulator)