x64 crash fix
x64 crash fix
Opening input config/customize hotkey would crash 64bit builds made with VS10 and newer (assuming it doesn't affect VS08 since official builds don't crash).
			
							- Attachments
 - 
			
		
		
				
- Fix-x64.zip
 - (1.36 KiB) Downloaded 2536 times
 
 
Re: x64 crash fix
Thanks, merged to github.
			
			
									
						
										
						Re: x64 crash fix
You're welcome, but you missed a few things.
GetClassLong -> GetClassLongPtr in wsnes.cpp.
GetWindowLong -> GetWindowLongPtr in InputCustom.cpp and on line 841
to
			
			
									
						
										
						GetClassLong -> GetClassLongPtr in wsnes.cpp.
GetWindowLong -> GetWindowLongPtr in InputCustom.cpp and on line 841
Code: Select all
SetWindowLongPtr(hwnd, 0, (LONG)icp);Code: Select all
SetWindowLongPtr(hwnd, 0, (LONG_PTR)icp);Re: x64 crash fix
Thanks again - that's what happens if you only look at the diff file instead of applying it 
However I don't see any GetClassLong calls in the entire project.
			
			
									
						
										
						However I don't see any GetClassLong calls in the entire project.
Re: x64 crash fix
My bad it was also a GetClassLong in inputcustom.  Was watching TV when I was writing that out and multitasking isn't my strong point.