Move group-list related code to a separate file and keep the group name in the group...
[reactos.git] / reactos / subsys / system / services / config.c
index 24c0138..4c1143f 100644 (file)
@@ -233,7 +233,7 @@ ScmReadString(HKEY hServiceKey,
     DWORD dwType;\r
     DWORD dwSizeNeeded;\r
     LPWSTR expanded = NULL;\r
-    LPBYTE ptr = NULL;\r
+    LPWSTR ptr = NULL;\r
 \r
     *lpValue = NULL;\r
 \r
@@ -255,7 +255,7 @@ ScmReadString(HKEY hServiceKey,
                                lpValueName,\r
                                0,\r
                                &dwType,\r
-                               ptr,\r
+                               (LPBYTE)ptr,\r
                                &dwSize);\r
     if (dwError != ERROR_SUCCESS)\r
         goto done;\r
@@ -281,7 +281,7 @@ ScmReadString(HKEY hServiceKey,
     }\r
     else\r
     {\r
-        *lpValue = (LPWSTR)ptr;\r
+        *lpValue = ptr;\r
     }\r
 \r
 done:;\r