diff --git a/cleo_sdk/CLEO_Utils.h b/cleo_sdk/CLEO_Utils.h index b2642fc6..9e20b316 100644 --- a/cleo_sdk/CLEO_Utils.h +++ b/cleo_sdk/CLEO_Utils.h @@ -187,7 +187,7 @@ namespace CLEO va_end(args); auto mainWnd = (HWND*)0x001C9055C; // PluginSDK: RsGlobal.ps->window - auto style = GetWindowLong(RsGlobal.ps->window, GWL_STYLE); + auto style = GetWindowLong(*mainWnd, GWL_STYLE); bool fullscreen = (style & (WS_BORDER | WS_CAPTION)) != 0; if (fullscreen)