Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBKKernel IOPLDispatcher filter warning C4305 #2444

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

DBKKernel IOPLDispatcher filter warning C4305 #2444

wants to merge 1 commit into from

Conversation

Qfrost911
Copy link

When I used vs2019 to build "DBKKernel x86", an error was raised

`1>DBKKernel\IOPLDispatcher.c(2183,68): error C2220: The following warning is considered an error
1>DBKKernel\IOPLDispatcher.c(2183,68): warning C4305: truncation from: From"UINT64”to“void *"
1>DBKKernel\IOPLDispatcher.c(2183,105): warning C4305: truncation from: From"UINT64”to“void *"

This is because the type of "vmx_password1" and "vmx_password3" is UINT64, but the type of "void*" only occupy 4 bytes under x86.
vmx_password1=pinp->Password1; vmx_password2=pinp->Password2; vmx_password3=pinp->Password3; DbgPrint("new passwords are: %p-%x-%p\n", (void*)vmx_password1, vmx_password2, (void*)vmx_password3);

@Qfrost911 Qfrost911 closed this by deleting the head repository Jan 21, 2023
@fade2gray
Copy link

@Qfrost911

Hi, after applying your patch, I'm seeing the following error - would you have a solution for that?

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2026	module unsafe for SAFESEH image.	DBKKernel	C:\Users\fade2gray\Desktop\CE Source\cheat-engine-master\DBKKernel\noexceptionsa.obj	1	
Error	LNK1281	Unable to generate SAFESEH image.	DBKKernel	C:\Users\fade2gray\Desktop\CE Source\cheat-engine-master\Cheat Engine\bin\DBK32.sys	1	
Error	LNK2026	module unsafe for SAFESEH image.	DBKKernel	C:\Users\fade2gray\Desktop\CE Source\cheat-engine-master\DBKKernel\segmentinfo.obj	1	

@Qfrost911
Copy link
Author

I don't think this error is relevant to this revision. The "Warning C4305" is only about truncation cast, but your error seems like about SAFESEH. I think you should try to disable SAFESEH or search which situation can cause "LNK2026".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants