[USER32]
[reactos.git] / reactos / win32ss / user / user32 / misc / desktop.c
index b32c9d5..ae10e8c 100644 (file)
@@ -330,7 +330,10 @@ RealSystemParametersInfoA(UINT uiAction,
           }
 
           Ret = NtUserSystemParametersInfo(SPI_SETDESKWALLPAPER, uiParam, pvParam, fWinIni);
-          RtlFreeUnicodeString(&ustrWallpaper);
+
+          if (pvParam)
+            RtlFreeUnicodeString(&ustrWallpaper);
+
           return Ret;
       }
     }