Browse Source

Correct _SNETUIDATA struct

UiProfileGetString returns a list of pointer to strings (4), not an int
pull/556/head^2^2
Anders Jenbo 6 years ago
parent
commit
9d028a418d
  1. 2
      DiabloUI/bn_prof.cpp
  2. 2
      DiabloUI/diabloui.h
  3. 2
      structs.h

2
DiabloUI/bn_prof.cpp

@ -10,7 +10,7 @@ signed int bn_prof_100014E8() { return 0; }
// 10029404: using guessed type int dword_10029404;
// ref: 0x100014F3
int __stdcall UiProfileGetString() { return 0; }
const char **__stdcall UiProfileGetString() { return NULL; }
//const char *UiProfileGetString() { return 0; }
/* {
return "profile\\sex";

2
DiabloUI/diabloui.h

@ -37,7 +37,7 @@ BOOL __stdcall UiSelHeroSingDialog(BOOL(__stdcall *fninfo)(BOOL(__stdcall *fninf
BOOL __stdcall UiCreditsDialog(int a1);
BOOL __stdcall UiMainMenuDialog(char *name, int *pdwResult, void(__stdcall *fnSound)(char *file), int a4);
BOOL __stdcall UiProgressDialog(HWND window, char *msg, int enable, int(*fnfunc)(), int rate);
int __stdcall UiProfileGetString();
const char **__stdcall UiProfileGetString();
void __cdecl UiProfileCallback();
void __cdecl UiProfileDraw();
BOOL __stdcall UiCategoryCallback(int a1, int a2, int a3, int a4, int a5, DWORD *a6, DWORD *a7);

2
structs.h

@ -1327,7 +1327,7 @@ typedef struct _SNETUIDATA {
void(* categorylistcallback)();
void(* newaccountcallback)();
void(* profilecallback)();
int profilefields;
const char **profilefields;
void(* profilebitmapcallback)();
int(__stdcall *selectnamecallback)(
const struct _SNETPROGRAMDATA *,

Loading…
Cancel
Save