]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/main.cpp
Applied [ 1283696 ] wxDC::GetPartialTextExtents crashes on empty strings
[wxWidgets.git] / src / msw / main.cpp
index ead91896d565e1b9cea4dd61c1ed0e05e72f4f12..8fb3fa3b23e851004526b448cf422de3f6d5aa36 100644 (file)
@@ -282,8 +282,7 @@ static bool wxIsUnicodeAvailable()
         );
 
         return false;
-#endif // !wxUSE_UNICODE_MSLU
-
+#else // wxUSE_UNICODE_MSLU
         // and the MSLU DLL must also be available
         HMODULE hmod = ::LoadLibraryA("unicows.dll");
         if ( !hmod )
@@ -324,6 +323,7 @@ static bool wxIsUnicodeAvailable()
         }
 
         ::FreeLibrary(hmod);
+#endif // !wxUSE_UNICODE_MSLU
     }
 
     return true;