diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/win32/cdwnative.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/win32/cdwnative.c b/src/win32/cdwnative.c index fdc223e..69623e1 100644 --- a/src/win32/cdwnative.c +++ b/src/win32/cdwnative.c @@ -165,8 +165,7 @@ static void cdcreatecanvas(cdCanvas* canvas, void *data) if (hWnd) { - LONG style; - style = GetClassLong(hWnd, GCL_STYLE); + LONG style = GetClassLong(hWnd, GCL_STYLE); ctxcanvas->isOwnedDC = (int) ((style & CS_OWNDC) || (style & CS_CLASSDC)); } else |