[USETUP] Use UNICODE_NULL.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 30 Jun 2017 22:17:18 +0000 (22:17 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 24 Oct 2018 23:02:20 +0000 (01:02 +0200)
svn path=/branches/setup_improvements/; revision=75248

base/setup/usetup/filequeue.c

index 6067fca..2d928fb 100644 (file)
@@ -156,7 +156,9 @@ SetupQueueCopy(
         SourceRootPath == NULL ||
         SourceFilename == NULL ||
         TargetDirectory == NULL)
+    {
         return FALSE;
+    }
 
     QueueHeader = (PFILEQUEUEHEADER)QueueHandle;
 
@@ -184,7 +186,7 @@ SetupQueueCopy(
         }
 
         wcsncpy(Entry->SourceCabinet, SourceCabinet, Length);
-        Entry->SourceCabinet[Length] = (WCHAR)0;
+        Entry->SourceCabinet[Length] = UNICODE_NULL;
     }
     else
     {
@@ -208,7 +210,7 @@ SetupQueueCopy(
     }
 
     wcsncpy(Entry->SourceRootPath, SourceRootPath, Length);
-    Entry->SourceRootPath[Length] = (WCHAR)0;
+    Entry->SourceRootPath[Length] = UNICODE_NULL;
 
     /* Copy source path */
     if (SourcePath != NULL)
@@ -232,7 +234,7 @@ SetupQueueCopy(
         }
 
         wcsncpy(Entry->SourcePath, SourcePath, Length);
-        Entry->SourcePath[Length] = (WCHAR)0;
+        Entry->SourcePath[Length] = UNICODE_NULL;
     }
 
     /* Copy source file name */
@@ -254,7 +256,7 @@ SetupQueueCopy(
     }
 
     wcsncpy(Entry->SourceFilename, SourceFilename, Length);
-    Entry->SourceFilename[Length] = (WCHAR)0;
+    Entry->SourceFilename[Length] = UNICODE_NULL;
 
     /* Copy target directory */
     Length = wcslen(TargetDirectory);
@@ -278,7 +280,7 @@ SetupQueueCopy(
     }
 
     wcsncpy(Entry->TargetDirectory, TargetDirectory, Length);
-    Entry->TargetDirectory[Length] = (WCHAR)0;
+    Entry->TargetDirectory[Length] = UNICODE_NULL;
 
     /* Copy optional target filename */
     if (TargetFilename != NULL)
@@ -303,7 +305,7 @@ SetupQueueCopy(
         }
 
         wcsncpy(Entry->TargetFilename, TargetFilename, Length);
-        Entry->TargetFilename[Length] = (WCHAR)0;
+        Entry->TargetFilename[Length] = UNICODE_NULL;
     }
 
     /* Append queue entry */