[USER32] Fix compilation when USE_VERSIONED_CLASSES is not defined
authorJoachim Henze <Joachim.Henze@reactos.org>
Thu, 12 Apr 2018 15:57:38 +0000 (17:57 +0200)
committerJoachim Henze <Joachim.Henze@reactos.org>
Thu, 12 Apr 2018 15:57:38 +0000 (17:57 +0200)
Variable 'Status' would be set but not used otherwise in this case.
This commit will not fix or improve CORE-13278,
but was spotted when having a look at that.

win32ss/user/user32/windows/class.c

index b745163..7208b36 100644 (file)
@@ -90,7 +90,9 @@ ClassNameToVersion(
   BOOL bAnsi)
 {
     LPCWSTR VersionedClass = NULL;
   BOOL bAnsi)
 {
     LPCWSTR VersionedClass = NULL;
+#ifdef USE_VERSIONED_CLASSES
     NTSTATUS Status;
     NTSTATUS Status;
+#endif
     UNICODE_STRING SectionName;
     WCHAR SectionNameBuf[MAX_PATH] = {0};
     ACTCTX_SECTION_KEYED_DATA KeyedData = { sizeof(KeyedData) };
     UNICODE_STRING SectionName;
     WCHAR SectionNameBuf[MAX_PATH] = {0};
     ACTCTX_SECTION_KEYED_DATA KeyedData = { sizeof(KeyedData) };
@@ -126,13 +128,13 @@ ClassNameToVersion(
             RtlInitUnicodeString(&SectionName, lpszClass);
         }
     }
             RtlInitUnicodeString(&SectionName, lpszClass);
         }
     }
+#ifdef USE_VERSIONED_CLASSES
     Status = RtlFindActivationContextSectionString( FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX,
                                                     NULL,
                                                     ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
                                                    &SectionName,
                                                    &KeyedData );
 
     Status = RtlFindActivationContextSectionString( FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX,
                                                     NULL,
                                                     ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION,
                                                    &SectionName,
                                                    &KeyedData );
 
-#ifdef USE_VERSIONED_CLASSES
     if (NT_SUCCESS(Status) && KeyedData.ulDataFormatVersion == 1)
     {
         struct strsection_header *SectionHeader = KeyedData.lpSectionBase;
     if (NT_SUCCESS(Status) && KeyedData.ulDataFormatVersion == 1)
     {
         struct strsection_header *SectionHeader = KeyedData.lpSectionBase;