[SYSDM]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 4 Feb 2017 17:27:49 +0000 (17:27 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 4 Feb 2017 17:27:49 +0000 (17:27 +0000)
- Fix wrong sizeof expression in DeleteHardwareProfile. CID 1322188

svn path=/trunk/; revision=73676

reactos/dll/cpl/sysdm/hardprof.c

index c606495..2a47ec3 100644 (file)
@@ -327,7 +327,7 @@ DeleteHardwareProfile(
     {
         RtlMoveMemory(&pProfileData->pProfiles[pProfileData->dwSelectedProfileIndex],
                       &pProfileData->pProfiles[pProfileData->dwSelectedProfileIndex + 1],
-                      (pProfileData->dwProfileCount - pProfileData->dwSelectedProfileIndex - 1) * sizeof(PPROFILE));
+                      (pProfileData->dwProfileCount - pProfileData->dwSelectedProfileIndex - 1) * sizeof(PROFILE));
     }
     else
     {