Strings are always NULL-terminated...
authorThomas Bluemel <thomas@reactsoft.com>
Sun, 18 Jan 2009 15:46:18 +0000 (15:46 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Sun, 18 Jan 2009 15:46:18 +0000 (15:46 +0000)
svn path=/trunk/; revision=38896

reactos/dll/win32/setupapi/misc.c

index 2b9a99a..f1fbb11 100644 (file)
@@ -1616,7 +1616,7 @@ static BOOL TrimGuidString(PCWSTR szString, LPWSTR szNewString)
             return TRUE;
         }
     }
-    wcscpy(szNewString, L"\0");
+    szNewString[0] = L'\0';
     return FALSE;
 }
 
@@ -1668,7 +1668,7 @@ pSetupStringFromGuid(LPGUID lpGUID, PWSTR pString, DWORD dwStringLen)
 
     wcscpy(szBuffer, L"{");
     wcscat(szBuffer, rpcBuffer);
-    wcscat(szBuffer, L"}\0");
+    wcscat(szBuffer, L"}");
 
     wcscpy(pString, szBuffer);