diff --git a/DiabloUI/bn_prof.cpp b/DiabloUI/bn_prof.cpp index 560d6cee6..a1be67af5 100644 --- a/DiabloUI/bn_prof.cpp +++ b/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"; diff --git a/DiabloUI/diabloui.h b/DiabloUI/diabloui.h index b89796754..923a26398 100644 --- a/DiabloUI/diabloui.h +++ b/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); diff --git a/structs.h b/structs.h index 34227e647..00a82282c 100644 --- a/structs.h +++ b/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 *,