Merge branch 'master' of github.com:thepowersgang/acess2
[tpg/acess2.git] / Usermode / Applications / axwin2_src / WM / wm.c
index 1bc8db2..b073223 100644 (file)
@@ -136,10 +136,10 @@ tElement *AxWin_CreateAppWindow(tApplication *App, const char *Name)
        tElement        *ret;
        tWindow *win;
        
-       win = calloc(sizeof(tWindow) + 1);
+       win = calloc(1, sizeof(tWindow) + 1);
        if(!win)        return NULL;
        
-       ret = &win->Element;
+       ret = &win->RootElement;
        ret->Type = ELETYPE_WINDOW;
        ret->Data = win;
        ret->Parent = &App->MetaElement;

UCC git Repository :: git.ucc.asn.au