X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Flibaxwin2.so_src%2Fmain.c;h=f71a73ce37aaa13bfd5f413f6f163924c0fc269a;hb=fe24894229067f695d5db33c213fc09086740dec;hp=c25c4e720ab99b21771b258919f0a85fcbe2e12a;hpb=15fe58771e11393f0945f6807af77f6966a3a2db;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/libaxwin2.so_src/main.c b/Usermode/Libraries/libaxwin2.so_src/main.c index c25c4e72..f71a73ce 100644 --- a/Usermode/Libraries/libaxwin2.so_src/main.c +++ b/Usermode/Libraries/libaxwin2.so_src/main.c @@ -53,8 +53,8 @@ int AxWin_Register(const char *Name, tAxWin_MessageCallback *DefaultCallback) req.Size = 1 + (len+1)/4; strcpy(req.Data, Name); - msg = AxWin_int_SendAndWait(MSG_SREQ_ADDTAB, &req); - ret = ((tAxWin_RetMsg*)msg->Data)->Bool; + msg = AxWin_int_SendAndWait(MSG_SRSP_RETURN, &req); + ret = ((tAxWin_RetMsg*)msg->Data)->Value; free(msg); gAxWin_DefaultCallback = DefaultCallback; @@ -62,19 +62,19 @@ int AxWin_Register(const char *Name, tAxWin_MessageCallback *DefaultCallback) return !!ret; } -tAxWin_Element *AxWin_CreateTab(const char *Title) +tAxWin_Element *AxWin_CreateWindow(const char *Title) { tAxWin_Message req; tAxWin_Message *msg; tAxWin_Element *ret; int len = strlen(Title); - req.ID = MSG_SREQ_ADDTAB; + req.ID = MSG_SREQ_ADDWIN; req.Size = 1 + (len+1)/4; strcpy(req.Data, Title); msg = AxWin_int_SendAndWait(MSG_SRSP_RETURN, &req); - ret = (tAxWin_Element*) ((tAxWin_RetMsg*)msg->Data)->Handle; + ret = (tAxWin_Element*) ((tAxWin_RetMsg*)msg->Data)->Value; free(msg); return ret;