Author: weiden
Date: Sun Jan 18 09:46:18 2009
New Revision: 38896
URL:
http://svn.reactos.org/svn/reactos?rev=38896&view=rev
Log:
Strings are always NULL-terminated...
Modified:
trunk/reactos/dll/win32/setupapi/misc.c
Modified: trunk/reactos/dll/win32/setupapi/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/misc.c?…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/misc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/misc.c [iso-8859-1] Sun Jan 18 09:46:18 2009
@@ -1616,7 +1616,7 @@
return TRUE;
}
}
- wcscpy(szNewString, L"\0");
+ szNewString[0] = L'\0';
return FALSE;
}
@@ -1668,7 +1668,7 @@
wcscpy(szBuffer, L"{");
wcscat(szBuffer, rpcBuffer);
- wcscat(szBuffer, L"}\0");
+ wcscat(szBuffer, L"}");
wcscpy(pString, szBuffer);