dmusic: Avoid signed-unsigned integer comparisons

Andrew Talbot andrew.talbot at talbotville.com
Tue Jan 15 16:26:59 CST 2013


Changelog:
    dmusic: Avoid signed-unsigned integer comparisons.

diff --git a/dlls/dmusic/dmusic.c b/dlls/dmusic/dmusic.c
index bdefe3a..0c2584f 100644
--- a/dlls/dmusic/dmusic.c
+++ b/dlls/dmusic/dmusic.c
@@ -316,7 +316,7 @@ static void create_system_ports_list(IDirectMusic8Impl* object)
     MIDIINCAPSW caps_in;
     IDirectMusicSynth8* synth;
     HRESULT hr;
-    int i;
+    ULONG i;
 
     TRACE("(%p)\n", object);
 
diff --git a/dlls/dmusic/port.c b/dlls/dmusic/port.c
index 55d0dad..459fdb8 100644
--- a/dlls/dmusic/port.c
+++ b/dlls/dmusic/port.c
@@ -251,7 +251,7 @@ static HRESULT WINAPI SynthPortImpl_IDirectMusicPort_DownloadInstrument(LPDIRECT
     ULONG offset;
     ULONG nb_regions;
     ULONG size;
-    int i;
+    ULONG i;
 
     TRACE("(%p/%p)->(%p, %p, %p, %d)\n", iface, This, instrument, downloaded_instrument, note_ranges, num_note_ranges);
 
@@ -684,7 +684,7 @@ HRESULT DMUSIC_CreateSynthPortImpl(LPCGUID guid, LPVOID *object, LPUNKNOWN unkou
 {
     SynthPortImpl *obj;
     HRESULT hr = E_FAIL;
-    UINT i;
+    int i;
 
     TRACE("(%p,%p,%p,%p,%p%d)\n", guid, object, unkouter, port_params, port_caps, device);
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130115/f8b1634a/attachment-0001.html>


More information about the wine-patches mailing list