don't typecast constant strings
[reactos.git] / reactos / boot / freeldr / freeldr / reactos / registry.c
index ada49a2..92e0954 100644 (file)
@@ -31,6 +31,7 @@ RegInitializeRegistry (VOID)
 {
 #if 0
   FRLDRHKEY TestKey;
+  WCHAR szTestString[] = L"TestString";
 #endif
 
   /* Create root key */
@@ -85,8 +86,8 @@ RegInitializeRegistry (VOID)
   RegSetValue (TestKey,
               L"TestValue",
               REG_SZ,
-              (PUCHAR)"TestString",
-              11);
+              szTestString,
+              sizeof(szTestString));
 #endif
 }