diff --git a/gfx/thebes/gfxWindowsPlatform.cpp b/gfx/thebes/gfxWindowsPlatform.cpp index a285e71696f3..5a988b8928d2 100644 --- a/gfx/thebes/gfxWindowsPlatform.cpp +++ b/gfx/thebes/gfxWindowsPlatform.cpp @@ -228,6 +228,7 @@ gfxWindowsPlatform::gfxWindowsPlatform() ::GetVersionExA(&versionInfo); bool isVistaOrHigher = versionInfo.dwMajorVersion >= 6; + PRBool safeMode = PR_FALSE; #ifdef CAIRO_HAS_D2D_SURFACE NS_RegisterMemoryReporter(new D2DCacheReporter()); NS_RegisterMemoryReporter(new D2DVRAMReporter()); @@ -239,7 +240,6 @@ gfxWindowsPlatform::gfxWindowsPlatform() d2dDisabled = PR_FALSE; nsCOMPtr xr = do_GetService("@mozilla.org/xre/runtime;1"); - PRBool safeMode = PR_FALSE; if (xr) xr->GetInSafeMode(&safeMode);