Jump to content
Tuts 4 You

OllyDBG 2.01 plugin SDK bug ?!


cypher

Recommended Posts

when using Ollys builtin options feature ODBG2_Pluginoptions with



static WCHAR opt_ollyTitle[TEXTLEN] = {};
static t_control scyllahideoptions[] =
.....
{
CA_EDIT, OPT_16, 200, 30, 40, 10, NULL,
opt_ollyTitle,
L"Olly title"
},
...

the SDK doc says that the opt_ollyTitle variable will be updated with the modifications you did on WM_CLOSE. however this doesnt work for some reason ! For CA_CHECK (checkboxes) it works...


 


Am I doing sth wrong ?


 


As a hacky workaround I now do



extc t_control* ODBG2_Pluginoptions(UINT msg,WPARAM wp,LPARAM lp) {
if(msg==WM_COMMAND) {
if(LOWORD(wp)==OPT_16) {
//yes this is hacky but for some reason CA_EDIT wont update its buffer
//so we need to get changes somehow else
HWND options = FindWindow(L"OD_EMPTY", L"Plugin options");
if(options) {
GetDlgItemTextW(options, OPT_16, opt_ollyTitle, 256);
}
}
}

Edited by cypher
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...