dmloader: Do not use wide character constants.

Michael Stefaniuc mstefani at redhat.de
Thu Jun 21 16:03:27 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/dmloader/loaderstream.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dmloader/loaderstream.c b/dlls/dmloader/loaderstream.c
index bbaf0d2..2a1938f 100644
--- a/dlls/dmloader/loaderstream.c
+++ b/dlls/dmloader/loaderstream.c
@@ -86,7 +86,7 @@ void WINAPI IDirectMusicLoaderFileStream_Detach (LPSTREAM iface) {
 	if (This->hFile != INVALID_HANDLE_VALUE) {
         CloseHandle(This->hFile);
     }
-    This->wzFileName[0] = (L'\0');
+    This->wzFileName[0] = '\0';
 }
 
 
-- 
1.5.0.6


-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
Sr. Network Engineer            Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at redhat.com
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
-------------- 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/1560079d/attachment.pgp


More information about the wine-patches mailing list