summaryrefslogtreecommitdiff
path: root/cd/src/win32/cdwnative.c
diff options
context:
space:
mode:
Diffstat (limited to 'cd/src/win32/cdwnative.c')
-rwxr-xr-xcd/src/win32/cdwnative.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cd/src/win32/cdwnative.c b/cd/src/win32/cdwnative.c
index fdc223e..69623e1 100755
--- a/cd/src/win32/cdwnative.c
+++ b/cd/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