From c9ebff8e7de093e7705aab6208593fae048ad98d Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Fri, 29 May 2020 23:43:00 +0200 Subject: controls: subclass generic "ALFControl" window The idea is that the compiler can strip unused controls when linking statically, but the window class initialization functions blocked that. --- alf/alfwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alf/alfwindow.cpp') diff --git a/alf/alfwindow.cpp b/alf/alfwindow.cpp index 3434cf5..a464080 100644 --- a/alf/alfwindow.cpp +++ b/alf/alfwindow.cpp @@ -375,7 +375,7 @@ ALF_RegisterWindowClass(void) WNDCLASS cls; ZeroMemory(&cls, sizeof(cls)); - ALF_BuildUniqueName(_alf_windowClass, TEXT("ALFWindow."), (ULONG_PTR)&_alf_windowClass); + ALF_BuildUniqueName(_alf_windowClass, TEXT("ALFWindow."), (ULONG_PTR)&_alf_windowClass[0]); cls.style = 0; cls.hInstance = ALF_HINSTANCE; -- cgit v1.2.3