setupapi: Do not use wide character constants.

Michael Stefaniuc mstefani at redhat.de
Thu Jun 21 15:56:32 CDT 2007


They aren't needed and the implicit cast from the 32bit wchar_t to the
16bit WCHAR isn't that much better than the (Wine) normal implicit cast
from the 8bit char.
---
 dlls/setupapi/devinst.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c
index e2a2dfe..0ec10dc 100644
--- a/dlls/setupapi/devinst.c
+++ b/dlls/setupapi/devinst.c
@@ -271,7 +271,7 @@ BOOL WINAPI SetupDiBuildClassInfoListExW(
 	    TRACE("Guid: %p\n", szKeyName);
 	    if (dwGuidListIndex < ClassGuidListSize)
 	    {
-		if (szKeyName[0] == L'{' && szKeyName[37] == L'}')
+		if (szKeyName[0] == '{' && szKeyName[37] == '}')
 		{
 		    szKeyName[37] = 0;
 		}
@@ -447,7 +447,7 @@ BOOL WINAPI SetupDiClassGuidsFromNameExW(
 		    TRACE("Guid: %p\n", szKeyName);
 		    if (dwGuidListIndex < ClassGuidListSize)
 		    {
-			if (szKeyName[0] == L'{' && szKeyName[37] == L'}')
+			if (szKeyName[0] == '{' && szKeyName[37] == '}')
 			{
 			    szKeyName[37] = 0;
 			}
-- 
1.5.0.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070621/f5a95109/attachment.pgp


More information about the wine-patches mailing list