Autosyncing with Wine HEAD
authorThe Wine Synchronizer <winesync@svn.reactos.org>
Mon, 13 Nov 2006 14:51:39 +0000 (14:51 +0000)
committerThe Wine Synchronizer <winesync@svn.reactos.org>
Mon, 13 Nov 2006 14:51:39 +0000 (14:51 +0000)
svn path=/trunk/; revision=24746

14 files changed:
reactos/dll/win32/avifil32/acmstream.c
reactos/dll/win32/avifil32/api.c
reactos/dll/win32/avifil32/avifile.c
reactos/dll/win32/avifil32/avifile_De.rc
reactos/dll/win32/avifil32/avifile_Ko.rc
reactos/dll/win32/avifil32/avifile_Nl.rc
reactos/dll/win32/avifil32/editstream.c
reactos/dll/win32/avifil32/extrachunk.c
reactos/dll/win32/avifil32/factory.c
reactos/dll/win32/avifil32/getframe.c
reactos/dll/win32/avifil32/icmstream.c
reactos/dll/win32/avifil32/regsvr.c
reactos/dll/win32/avifil32/tmpfile.c
reactos/dll/win32/avifil32/wavfile.c

index 19dc981..6cda8c9 100644 (file)
@@ -16,7 +16,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COM_NO_WINDOWS_H
 #include <assert.h>
 #include <stdarg.h>
 
@@ -151,7 +150,7 @@ static ULONG WINAPI ACMStream_fnAddRef(IAVIStream *iface)
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
   ULONG ref = InterlockedIncrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   /* also add reference to the nested stream */
   if (This->pStream != NULL)
@@ -165,7 +164,7 @@ static ULONG WINAPI ACMStream_fnRelease(IAVIStream* iface)
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
   ULONG ref = InterlockedDecrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   if (ref == 0) {
     /* destruct */
@@ -266,7 +265,7 @@ static HRESULT WINAPI ACMStream_fnInfo(IAVIStream *iface,LPAVISTREAMINFOW psi,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n", iface, psi, size);
+  TRACE("(%p,%p,%d)\n", iface, psi, size);
 
   if (psi == NULL)
     return AVIERR_BADPARAM;
@@ -293,7 +292,7 @@ static LONG WINAPI ACMStream_fnFindSample(IAVIStream *iface, LONG pos,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%ld,0x%08lX)\n",iface,pos,flags);
+  TRACE("(%p,%d,0x%08X)\n",iface,pos,flags);
 
   if (flags & FIND_FROM_START) {
     pos = This->sInfo.dwStart;
@@ -321,7 +320,7 @@ static HRESULT WINAPI ACMStream_fnReadFormat(IAVIStream *iface, LONG pos,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%ld,%p,%p)\n", iface, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%p)\n", iface, pos, format, formatsize);
 
   if (formatsize == NULL)
     return AVIERR_BADPARAM;
@@ -358,7 +357,7 @@ static HRESULT WINAPI ACMStream_fnSetFormat(IAVIStream *iface, LONG pos,
 
   HRESULT hr;
 
-  TRACE("(%p,%ld,%p,%ld)\n", iface, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%d)\n", iface, pos, format, formatsize);
 
   /* check parameters */
   if (format == NULL || formatsize <= 0)
@@ -406,7 +405,7 @@ static HRESULT WINAPI ACMStream_fnRead(IAVIStream *iface, LONG start,
   HRESULT hr;
   DWORD   size;
 
-  TRACE("(%p,%ld,%ld,%p,%ld,%p,%p)\n", iface, start, samples, buffer,
+  TRACE("(%p,%d,%d,%p,%d,%p,%p)\n", iface, start, samples, buffer,
        buffersize, bytesread, samplesread);
 
   /* clear return parameters if given */
@@ -527,7 +526,7 @@ static HRESULT WINAPI ACMStream_fnWrite(IAVIStream *iface, LONG start,
   HRESULT hr;
   ULONG   size;
 
-  TRACE("(%p,%ld,%ld,%p,%ld,0x%08lX,%p,%p)\n", iface, start, samples,
+  TRACE("(%p,%d,%d,%p,%d,0x%08X,%p,%p)\n", iface, start, samples,
        buffer, buffersize, flags, sampwritten, byteswritten);
 
   /* clear return parameters if given */
@@ -617,7 +616,7 @@ static HRESULT WINAPI ACMStream_fnDelete(IAVIStream *iface, LONG start,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%ld,%ld)\n", iface, start, samples);
+  TRACE("(%p,%d,%d)\n", iface, start, samples);
 
   /* check parameters */
   if (start < 0 || samples < 0)
@@ -651,7 +650,7 @@ static HRESULT WINAPI ACMStream_fnReadData(IAVIStream *iface, DWORD fcc,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,0x%08lX,%p,%p)\n", iface, fcc, lp, lpread);
+  TRACE("(%p,0x%08X,%p,%p)\n", iface, fcc, lp, lpread);
 
   assert(This->pStream != NULL);
 
@@ -663,7 +662,7 @@ static HRESULT WINAPI ACMStream_fnWriteData(IAVIStream *iface, DWORD fcc,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,0x%08lx,%p,%ld)\n", iface, fcc, lp, size);
+  TRACE("(%p,0x%08x,%p,%d)\n", iface, fcc, lp, size);
 
   assert(This->pStream != NULL);
 
@@ -673,7 +672,7 @@ static HRESULT WINAPI ACMStream_fnWriteData(IAVIStream *iface, DWORD fcc,
 static HRESULT WINAPI ACMStream_fnSetInfo(IAVIStream *iface,
                                           LPAVISTREAMINFOW info, LONG infolen)
 {
-  FIXME("(%p,%p,%ld): stub\n", iface, info, infolen);
+  FIXME("(%p,%p,%d): stub\n", iface, info, infolen);
 
   return E_FAIL;
 }
index 182e72f..9236f0d 100644 (file)
@@ -21,7 +21,6 @@
 #include <stdarg.h>
 
 #define COBJMACROS
-#define COM_NO_WINDOWS_H
 
 #include "windef.h"
 #include "winbase.h"
@@ -318,7 +317,7 @@ HRESULT WINAPI AVIFileInfoA(PAVIFILE pfile, LPAVIFILEINFOA afi, LONG size)
   AVIFILEINFOW afiw;
   HRESULT      hres;
 
-  TRACE("(%p,%p,%ld)\n", pfile, afi, size);
+  TRACE("(%p,%p,%d)\n", pfile, afi, size);
 
   if (pfile == NULL)
     return AVIERR_BADHANDLE;
@@ -340,7 +339,7 @@ HRESULT WINAPI AVIFileInfoA(PAVIFILE pfile, LPAVIFILEINFOA afi, LONG size)
  */
 HRESULT WINAPI AVIFileInfoW(PAVIFILE pfile, LPAVIFILEINFOW afiw, LONG size)
 {
-  TRACE("(%p,%p,%ld)\n", pfile, afiw, size);
+  TRACE("(%p,%p,%d)\n", pfile, afiw, size);
 
   if (pfile == NULL)
     return AVIERR_BADHANDLE;
@@ -355,7 +354,7 @@ HRESULT WINAPI AVIFileInfoW(PAVIFILE pfile, LPAVIFILEINFOW afiw, LONG size)
 HRESULT WINAPI AVIFileGetStream(PAVIFILE pfile, PAVISTREAM *avis,
                                DWORD fccType, LONG lParam)
 {
-  TRACE("(%p,%p,'%4.4s',%ld)\n", pfile, avis, (char*)&fccType, lParam);
+  TRACE("(%p,%p,'%4.4s',%d)\n", pfile, avis, (char*)&fccType, lParam);
 
   if (pfile == NULL)
     return AVIERR_BADHANDLE;
@@ -406,7 +405,7 @@ HRESULT WINAPI AVIFileCreateStreamW(PAVIFILE pfile, PAVISTREAM *avis,
  */
 HRESULT WINAPI AVIFileWriteData(PAVIFILE pfile,DWORD fcc,LPVOID lp,LONG size)
 {
-  TRACE("(%p,'%4.4s',%p,%ld)\n", pfile, (char*)&fcc, lp, size);
+  TRACE("(%p,'%4.4s',%p,%d)\n", pfile, (char*)&fcc, lp, size);
 
   if (pfile == NULL)
     return AVIERR_BADHANDLE;
@@ -483,7 +482,7 @@ HRESULT WINAPI AVIStreamCreate(PAVISTREAM *ppavi, LONG lParam1, LONG lParam2,
 {
   HRESULT hr;
 
-  TRACE("(%p,0x%08lX,0x%08lX,%s)\n", ppavi, lParam1, lParam2,
+  TRACE("(%p,0x%08X,0x%08X,%s)\n", ppavi, lParam1, lParam2,
        debugstr_guid(pclsidHandler));
 
   if (ppavi == NULL)
@@ -517,7 +516,7 @@ HRESULT WINAPI AVIStreamInfoA(PAVISTREAM pstream, LPAVISTREAMINFOA asi,
   AVISTREAMINFOW asiw;
   HRESULT       hres;
 
-  TRACE("(%p,%p,%ld)\n", pstream, asi, size);
+  TRACE("(%p,%p,%d)\n", pstream, asi, size);
 
   if (pstream == NULL)
     return AVIERR_BADHANDLE;
@@ -540,7 +539,7 @@ HRESULT WINAPI AVIStreamInfoA(PAVISTREAM pstream, LPAVISTREAMINFOA asi,
 HRESULT WINAPI AVIStreamInfoW(PAVISTREAM pstream, LPAVISTREAMINFOW asi,
                              LONG size)
 {
-  TRACE("(%p,%p,%ld)\n", pstream, asi, size);
+  TRACE("(%p,%p,%d)\n", pstream, asi, size);
 
   if (pstream == NULL)
     return AVIERR_BADHANDLE;
@@ -554,7 +553,7 @@ HRESULT WINAPI AVIStreamInfoW(PAVISTREAM pstream, LPAVISTREAMINFOW asi,
  */
 HRESULT WINAPI AVIStreamFindSample(PAVISTREAM pstream, LONG pos, DWORD flags)
 {
-  TRACE("(%p,%ld,0x%lX)\n", pstream, pos, flags);
+  TRACE("(%p,%d,0x%X)\n", pstream, pos, flags);
 
   if (pstream == NULL)
     return -1;
@@ -569,7 +568,7 @@ HRESULT WINAPI AVIStreamFindSample(PAVISTREAM pstream, LONG pos, DWORD flags)
 HRESULT WINAPI AVIStreamReadFormat(PAVISTREAM pstream, LONG pos,
                                   LPVOID format, LPLONG formatsize)
 {
-  TRACE("(%p,%ld,%p,%p)\n", pstream, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%p)\n", pstream, pos, format, formatsize);
 
   if (pstream == NULL)
     return AVIERR_BADHANDLE;
@@ -584,7 +583,7 @@ HRESULT WINAPI AVIStreamReadFormat(PAVISTREAM pstream, LONG pos,
 HRESULT WINAPI AVIStreamSetFormat(PAVISTREAM pstream, LONG pos,
                                  LPVOID format, LONG formatsize)
 {
-  TRACE("(%p,%ld,%p,%ld)\n", pstream, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%d)\n", pstream, pos, format, formatsize);
 
   if (pstream == NULL)
     return AVIERR_BADHANDLE;
@@ -600,7 +599,7 @@ HRESULT WINAPI AVIStreamRead(PAVISTREAM pstream, LONG start, LONG samples,
                             LPVOID buffer, LONG buffersize,
                             LPLONG bytesread, LPLONG samplesread)
 {
-  TRACE("(%p,%ld,%ld,%p,%ld,%p,%p)\n", pstream, start, samples, buffer,
+  TRACE("(%p,%d,%d,%p,%d,%p,%p)\n", pstream, start, samples, buffer,
        buffersize, bytesread, samplesread);
 
   if (pstream == NULL)
@@ -618,7 +617,7 @@ HRESULT WINAPI AVIStreamWrite(PAVISTREAM pstream, LONG start, LONG samples,
                              LPVOID buffer, LONG buffersize, DWORD flags,
                              LPLONG sampwritten, LPLONG byteswritten)
 {
-  TRACE("(%p,%ld,%ld,%p,%ld,0x%lX,%p,%p)\n", pstream, start, samples, buffer,
+  TRACE("(%p,%d,%d,%p,%d,0x%X,%p,%p)\n", pstream, start, samples, buffer,
        buffersize, flags, sampwritten, byteswritten);
 
   if (pstream == NULL)
@@ -650,7 +649,7 @@ HRESULT WINAPI AVIStreamReadData(PAVISTREAM pstream, DWORD fcc, LPVOID lp,
 HRESULT WINAPI AVIStreamWriteData(PAVISTREAM pstream, DWORD fcc, LPVOID lp,
                                  LONG size)
 {
-  TRACE("(%p,'%4.4s',%p,%ld)\n", pstream, (char*)&fcc, lp, size);
+  TRACE("(%p,'%4.4s',%p,%d)\n", pstream, (char*)&fcc, lp, size);
 
   if (pstream == NULL)
     return AVIERR_BADHANDLE;
@@ -690,7 +689,7 @@ PGETFRAME WINAPI AVIStreamGetFrameOpen(PAVISTREAM pstream,
  */
 LPVOID WINAPI AVIStreamGetFrame(PGETFRAME pg, LONG pos)
 {
-  TRACE("(%p,%ld)\n", pg, pos);
+  TRACE("(%p,%d)\n", pg, pos);
 
   if (pg == NULL)
     return NULL;
@@ -793,7 +792,7 @@ HRESULT WINAPI AVIStreamOpenFromFileA(PAVISTREAM *ppavi, LPCSTR szFile,
   PAVIFILE pfile = NULL;
   HRESULT  hr;
 
-  TRACE("(%p,%s,'%4.4s',%ld,0x%X,%s)\n", ppavi, debugstr_a(szFile),
+  TRACE("(%p,%s,'%4.4s',%d,0x%X,%s)\n", ppavi, debugstr_a(szFile),
        (char*)&fccType, lParam, mode, debugstr_guid(pclsidHandler));
 
   if (ppavi == NULL || szFile == NULL)
@@ -821,7 +820,7 @@ HRESULT WINAPI AVIStreamOpenFromFileW(PAVISTREAM *ppavi, LPCWSTR szFile,
   PAVIFILE pfile = NULL;
   HRESULT  hr;
 
-  TRACE("(%p,%s,'%4.4s',%ld,0x%X,%s)\n", ppavi, debugstr_w(szFile),
+  TRACE("(%p,%s,'%4.4s',%d,0x%X,%s)\n", ppavi, debugstr_w(szFile),
        (char*)&fccType, lParam, mode, debugstr_guid(pclsidHandler));
 
   if (ppavi == NULL || szFile == NULL)
@@ -847,7 +846,7 @@ LONG WINAPI AVIStreamBeginStreaming(PAVISTREAM pavi, LONG lStart, LONG lEnd, LON
   IAVIStreaming* pstream = NULL;
   HRESULT hr;
 
-  TRACE("(%p,%ld,%ld,%ld)\n", pavi, lStart, lEnd, lRate);
+  TRACE("(%p,%d,%d,%d)\n", pavi, lStart, lEnd, lRate);
 
   if (pavi == NULL)
     return AVIERR_BADHANDLE;
@@ -928,7 +927,7 @@ LONG WINAPI AVIStreamSampleToTime(PAVISTREAM pstream, LONG lSample)
   AVISTREAMINFOW asiw;
   LONG time;
 
-  TRACE("(%p,%ld)\n", pstream, lSample);
+  TRACE("(%p,%d)\n", pstream, lSample);
 
   if (pstream == NULL)
     return -1;
@@ -949,7 +948,7 @@ LONG WINAPI AVIStreamSampleToTime(PAVISTREAM pstream, LONG lSample)
   else
     time = (LONG)(((float)lSample * asiw.dwScale * 1000 + (asiw.dwRate - 1)) / asiw.dwRate);
 
-  TRACE(" -> %ld\n",time);
+  TRACE(" -> %d\n",time);
   return time;
 }
 
@@ -962,7 +961,7 @@ LONG WINAPI AVIStreamTimeToSample(PAVISTREAM pstream, LONG lTime)
   AVISTREAMINFOW asiw;
   ULONG sample;
 
-  TRACE("(%p,%ld)\n", pstream, lTime);
+  TRACE("(%p,%d)\n", pstream, lTime);
 
   if (pstream == NULL || lTime < 0)
     return -1;
@@ -983,7 +982,7 @@ LONG WINAPI AVIStreamTimeToSample(PAVISTREAM pstream, LONG lTime)
   if (sample > asiw.dwStart + asiw.dwLength)
     sample = asiw.dwStart + asiw.dwLength;
 
-  TRACE(" -> %ld\n", sample);
+  TRACE(" -> %d\n", sample);
   return sample;
 }
 
@@ -997,7 +996,7 @@ HRESULT WINAPI AVIBuildFilterA(LPSTR szFilter, LONG cbFilter, BOOL fSaving)
   LPWSTR  wszFilter;
   HRESULT hr;
 
-  TRACE("(%p,%ld,%d)\n", szFilter, cbFilter, fSaving);
+  TRACE("(%p,%d,%d)\n", szFilter, cbFilter, fSaving);
 
   /* check parameters */
   if (szFilter == NULL)
@@ -1042,7 +1041,7 @@ HRESULT WINAPI AVIBuildFilterW(LPWSTR szFilter, LONG cbFilter, BOOL fSaving)
   LONG       size;
   DWORD      count = 0;
 
-  TRACE("(%p,%ld,%d)\n", szFilter, cbFilter, fSaving);
+  TRACE("(%p,%d,%d)\n", szFilter, cbFilter, fSaving);
 
   /* check parameters */
   if (szFilter == NULL)
@@ -1287,7 +1286,7 @@ static BOOL AVISaveOptionsFmtChoose(HWND hWnd)
     HeapFree(GetProcessHeap(), 0, afmtc.pwfxEnum);
     return (ret == S_OK ? TRUE : FALSE);
   } else {
-    ERR(": unknown streamtype 0x%08lX\n", sInfo.fccType);
+    ERR(": unknown streamtype 0x%08X\n", sInfo.fccType);
     return FALSE;
   }
 }
@@ -1663,7 +1662,7 @@ HRESULT WINAPI AVISaveVW(LPCWSTR szFile, CLSID *pclsidHandler,
        lFirstVideo = curStream;
     } else if (!dwInterleave && plpOptions != NULL) {
       /* check if any non-video stream wants to be interleaved */
-      WARN("options.flags=0x%lX options.dwInterleave=%lu\n",plpOptions[curStream]->dwFlags,plpOptions[curStream]->dwInterleaveEvery);
+      WARN("options.flags=0x%X options.dwInterleave=%u\n",plpOptions[curStream]->dwFlags,plpOptions[curStream]->dwInterleaveEvery);
       if (plpOptions[curStream] != NULL &&
          plpOptions[curStream]->dwFlags & AVICOMPRESSF_INTERLEAVE)
        dwInterleave = plpOptions[curStream]->dwInterleaveEvery;
@@ -1841,7 +1840,7 @@ HRESULT WINAPI AVISaveVW(LPCWSTR szFile, CLSID *pclsidHandler,
        }
 
        /* copy needed samples now */
-       WARN("copy from stream %d samples %ld to %ld...\n",curStream,
+       WARN("copy from stream %d samples %d to %d...\n",curStream,
              lStart[curStream],lFirstVideo);
        while (lFirstVideo > lStart[curStream]) {
          DWORD flags = 0;
@@ -2153,7 +2152,7 @@ HRESULT WINAPI EditStreamPaste(PAVISTREAM pDest, LONG *plStart, LONG *plLength,
   PAVIEDITSTREAM pEdit = NULL;
   HRESULT        hr;
 
-  TRACE("(%p,%p,%p,%p,%ld,%ld)\n", pDest, plStart, plLength,
+  TRACE("(%p,%p,%p,%p,%d,%d)\n", pDest, plStart, plLength,
        pSource, lStart, lEnd);
 
   if (pDest == NULL || pSource == NULL)
@@ -2180,7 +2179,7 @@ HRESULT WINAPI EditStreamSetInfoA(PAVISTREAM pstream, LPAVISTREAMINFOA asi,
 {
   AVISTREAMINFOW asiw;
 
-  TRACE("(%p,%p,%ld)\n", pstream, asi, size);
+  TRACE("(%p,%p,%d)\n", pstream, asi, size);
 
   if (pstream == NULL)
     return AVIERR_BADHANDLE;
@@ -2203,7 +2202,7 @@ HRESULT WINAPI EditStreamSetInfoW(PAVISTREAM pstream, LPAVISTREAMINFOW asi,
   PAVIEDITSTREAM pEdit = NULL;
   HRESULT        hr;
 
-  TRACE("(%p,%p,%ld)\n", pstream, asi, size);
+  TRACE("(%p,%p,%d)\n", pstream, asi, size);
 
   hr = IAVIStream_QueryInterface(pstream, &IID_IAVIEditStream,(LPVOID*)&pEdit);
   if (SUCCEEDED(hr) && pEdit != NULL) {
index 1805623..f989c79 100644 (file)
@@ -30,7 +30,6 @@
  *    When index is missing it works, but index seems to be okay.
  */
 
-#define COM_NO_WINDOWS_H
 #include <assert.h>
 #include <stdarg.h>
 
@@ -283,7 +282,7 @@ static ULONG WINAPI IAVIFile_fnAddRef(IAVIFile *iface)
   IAVIFileImpl *This = (IAVIFileImpl *)iface;
   ULONG ref = InterlockedIncrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   return ref;
 }
@@ -294,7 +293,7 @@ static ULONG WINAPI IAVIFile_fnRelease(IAVIFile *iface)
   UINT i;
   ULONG ref = InterlockedDecrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   if (!ref) {
     if (This->fDirty) {
@@ -305,7 +304,7 @@ static ULONG WINAPI IAVIFile_fnRelease(IAVIFile *iface)
     for (i = 0; i < This->fInfo.dwStreams; i++) {
       if (This->ppStreams[i] != NULL) {
        if (This->ppStreams[i]->ref != 0) {
-         ERR(": someone has still %lu reference to stream %u (%p)!\n",
+          ERR(": someone has still %u reference to stream %u (%p)!\n",
               This->ppStreams[i]->ref, i, This->ppStreams[i]);
        }
        AVIFILE_DestructAVIStream(This->ppStreams[i]);
@@ -344,7 +343,7 @@ static HRESULT WINAPI IAVIFile_fnInfo(IAVIFile *iface, LPAVIFILEINFOW afi,
 {
   IAVIFileImpl *This = (IAVIFileImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n",iface,afi,size);
+  TRACE("(%p,%p,%d)\n",iface,afi,size);
 
   if (afi == NULL)
     return AVIERR_BADPARAM;
@@ -367,7 +366,7 @@ static HRESULT WINAPI IAVIFile_fnGetStream(IAVIFile *iface, PAVISTREAM *avis,
 
   ULONG nStream;
 
-  TRACE("(%p,%p,0x%08lX,%ld)\n", iface, avis, fccType, lParam);
+  TRACE("(%p,%p,0x%08X,%d)\n", iface, avis, fccType, lParam);
 
   if (avis == NULL || lParam < 0)
     return AVIERR_BADPARAM;
@@ -446,7 +445,7 @@ static HRESULT WINAPI IAVIFile_fnWriteData(IAVIFile *iface, DWORD ckid,
 {
   IAVIFileImpl *This = (IAVIFileImpl *)iface;
 
-  TRACE("(%p,0x%08lX,%p,%ld)\n", iface, ckid, lpData, size);
+  TRACE("(%p,0x%08X,%p,%d)\n", iface, ckid, lpData, size);
 
   /* check parameters */
   if (lpData == NULL)
@@ -468,7 +467,7 @@ static HRESULT WINAPI IAVIFile_fnReadData(IAVIFile *iface, DWORD ckid,
 {
   IAVIFileImpl *This = (IAVIFileImpl *)iface;
 
-  TRACE("(%p,0x%08lX,%p,%p)\n", iface, ckid, lpData, size);
+  TRACE("(%p,0x%08X,%p,%p)\n", iface, ckid, lpData, size);
 
   return ReadExtraChunk(&This->fileextra, ckid, lpData, size);
 }
@@ -521,7 +520,7 @@ static HRESULT WINAPI IAVIFile_fnDeleteStream(IAVIFile *iface, DWORD fccType,
 
   ULONG nStream;
 
-  TRACE("(%p,0x%08lX,%ld)\n", iface, fccType, lParam);
+  TRACE("(%p,0x%08X,%d)\n", iface, fccType, lParam);
 
   /* check parameter */
   if (lParam < 0)
@@ -614,7 +613,7 @@ static HRESULT WINAPI IPersistFile_fnLoad(IPersistFile *iface,
 
   int len;
 
-  TRACE("(%p,%s,0x%08lX)\n", iface, debugstr_w(pszFileName), dwMode);
+  TRACE("(%p,%s,0x%08X)\n", iface, debugstr_w(pszFileName), dwMode);
 
   /* check parameter */
   if (pszFileName == NULL)
@@ -738,7 +737,7 @@ static ULONG WINAPI IAVIStream_fnAddRef(IAVIStream *iface)
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
   ULONG ref = InterlockedIncrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   /* also add ref to parent, so that it doesn't kill us */
   if (This->paf != NULL)
@@ -752,7 +751,7 @@ static ULONG WINAPI IAVIStream_fnRelease(IAVIStream* iface)
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
   ULONG ref = InterlockedDecrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   if (This->paf != NULL)
     IAVIFile_Release((PAVIFILE)This->paf);
@@ -774,7 +773,7 @@ static HRESULT WINAPI IAVIStream_fnInfo(IAVIStream *iface,LPAVISTREAMINFOW psi,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n", iface, psi, size);
+  TRACE("(%p,%p,%d)\n", iface, psi, size);
 
   if (psi == NULL)
     return AVIERR_BADPARAM;
@@ -795,7 +794,7 @@ static LONG WINAPI IAVIStream_fnFindSample(IAVIStream *iface, LONG pos,
 
   LONG offset = 0;
 
-  TRACE("(%p,%ld,0x%08lX)\n",iface,pos,flags);
+  TRACE("(%p,%d,0x%08X)\n",iface,pos,flags);
 
   if (flags & FIND_FROM_START) {
     pos = This->sInfo.dwStart;
@@ -893,7 +892,7 @@ static HRESULT WINAPI IAVIStream_fnReadFormat(IAVIStream *iface, LONG pos,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%ld,%p,%p)\n", iface, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%p)\n", iface, pos, format, formatsize);
 
   if (formatsize == NULL)
     return AVIERR_BADPARAM;
@@ -919,7 +918,7 @@ static HRESULT WINAPI IAVIStream_fnReadFormat(IAVIStream *iface, LONG pos,
 
     lLastFmt = IAVIStream_fnFindSample(iface, pos, FIND_FORMAT|FIND_PREV);
     if (lLastFmt > 0) {
-      FIXME(": need to read formatchange for %ld -- unimplemented!\n",lLastFmt);
+      FIXME(": need to read formatchange for %d -- unimplemented!\n",lLastFmt);
     }
   }
 
@@ -934,7 +933,7 @@ static HRESULT WINAPI IAVIStream_fnSetFormat(IAVIStream *iface, LONG pos,
 
   LPBITMAPINFOHEADER lpbiNew = (LPBITMAPINFOHEADER)format;
 
-  TRACE("(%p,%ld,%p,%ld)\n", iface, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%d)\n", iface, pos, format, formatsize);
 
   /* check parameters */
   if (format == NULL || formatsize <= 0)
@@ -1045,7 +1044,7 @@ static HRESULT WINAPI IAVIStream_fnRead(IAVIStream *iface, LONG start,
   DWORD    size;
   HRESULT  hr;
 
-  TRACE("(%p,%ld,%ld,%p,%ld,%p,%p)\n", iface, start, samples, buffer,
+  TRACE("(%p,%d,%d,%p,%d,%p,%p)\n", iface, start, samples, buffer,
        buffersize, bytesread, samplesread);
 
   /* clear return parameters if given */
@@ -1156,7 +1155,7 @@ static HRESULT WINAPI IAVIStream_fnWrite(IAVIStream *iface, LONG start,
   FOURCC  ckid;
   HRESULT hr;
 
-  TRACE("(%p,%ld,%ld,%p,%ld,0x%08lX,%p,%p)\n", iface, start, samples,
+  TRACE("(%p,%d,%d,%p,%d,0x%08X,%p,%p)\n", iface, start, samples,
        buffer, buffersize, flags, sampwritten, byteswritten);
 
   /* clear return parameters if given */
@@ -1244,7 +1243,7 @@ static HRESULT WINAPI IAVIStream_fnDelete(IAVIStream *iface, LONG start,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  FIXME("(%p,%ld,%ld): stub\n", iface, start, samples);
+  FIXME("(%p,%d,%d): stub\n", iface, start, samples);
 
   /* check parameters */
   if (start < 0 || samples < 0)
@@ -1283,7 +1282,7 @@ static HRESULT WINAPI IAVIStream_fnReadData(IAVIStream *iface, DWORD fcc,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,0x%08lX,%p,%p)\n", iface, fcc, lp, lpread);
+  TRACE("(%p,0x%08X,%p,%p)\n", iface, fcc, lp, lpread);
 
   if (fcc == ckidSTREAMHANDLERDATA) {
     if (This->lpHandlerData != NULL && This->cbHandlerData > 0) {
@@ -1307,7 +1306,7 @@ static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream *iface, DWORD fcc,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,0x%08lx,%p,%ld)\n", iface, fcc, lp, size);
+  TRACE("(%p,0x%08x,%p,%d)\n", iface, fcc, lp, size);
 
   /* check parameters */
   if (lp == NULL)
@@ -1353,7 +1352,7 @@ static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream *iface, DWORD fcc,
 static HRESULT WINAPI IAVIStream_fnSetInfo(IAVIStream *iface,
                                           LPAVISTREAMINFOW info, LONG infolen)
 {
-  FIXME("(%p,%p,%ld): stub\n", iface, info, infolen);
+  FIXME("(%p,%p,%d): stub\n", iface, info, infolen);
 
   return E_FAIL;
 }
@@ -1625,7 +1624,7 @@ static HRESULT AVIFILE_LoadFile(IAVIFileImpl *This)
     return hr;
 
   if (ck.cksize != sizeof(MainAVIHdr)) {
-    ERR(": invalid size of %ld for MainAVIHeader!\n", ck.cksize);
+    ERR(": invalid size of %d for MainAVIHeader!\n", ck.cksize);
     return AVIERR_BADFORMAT;
   }
   if (mmioRead(This->hmmio, (HPSTR)&MainAVIHdr, ck.cksize) != ck.cksize)
@@ -1633,7 +1632,7 @@ static HRESULT AVIFILE_LoadFile(IAVIFileImpl *This)
 
   /* check for MAX_AVISTREAMS limit */
   if (MainAVIHdr.dwStreams > MAX_AVISTREAMS) {
-    WARN("file contains %lu streams, but only supports %d -- change MAX_AVISTREAMS!\n", MainAVIHdr.dwStreams, MAX_AVISTREAMS);
+    WARN("file contains %u streams, but only supports %d -- change MAX_AVISTREAMS!\n", MainAVIHdr.dwStreams, MAX_AVISTREAMS);
     return AVIERR_UNSUPPORTED;
   }
 
@@ -1811,7 +1810,7 @@ static HRESULT AVIFILE_LoadFile(IAVIFileImpl *This)
        case mmioFOURCC('p','a','d','d'):
          break;
        default:
-         WARN(": found extra chunk 0x%08lX\n", ck.ckid);
+          WARN(": found extra chunk 0x%08X\n", ck.ckid);
          hr = ReadChunkIntoExtra(&pStream->extra, This->hmmio, &ck);
          if (FAILED(hr))
            return hr;
@@ -1969,7 +1968,7 @@ static HRESULT AVIFILE_LoadIndex(IAVIFileImpl *This, DWORD size, DWORD offset)
 
     if (pStream->sInfo.dwSampleSize == 0 &&
        pStream->sInfo.dwLength != pStream->lLastFrame+1)
-      ERR("stream %lu length mismatch: dwLength=%lu found=%ld\n",
+      ERR("stream %u length mismatch: dwLength=%u found=%d\n",
           n, pStream->sInfo.dwLength, pStream->lLastFrame);
   }
 
@@ -2047,11 +2046,11 @@ static HRESULT AVIFILE_ReadBlock(IAVIStreamImpl *This, DWORD pos,
     /* check if it was the correct block which we have read */
     if (This->lpBuffer[0] != This->idxFrames[pos].ckid ||
        This->lpBuffer[1] != This->idxFrames[pos].dwChunkLength) {
-      ERR(": block %ld not found at 0x%08lX\n", pos, This->idxFrames[pos].dwChunkOffset);
-      ERR(": Index says: '%4.4s'(0x%08lX) size 0x%08lX\n",
+      ERR(": block %d not found at 0x%08X\n", pos, This->idxFrames[pos].dwChunkOffset);
+      ERR(": Index says: '%4.4s'(0x%08X) size 0x%08X\n",
          (char*)&This->idxFrames[pos].ckid, This->idxFrames[pos].ckid,
          This->idxFrames[pos].dwChunkLength);
-      ERR(": Data  says: '%4.4s'(0x%08lX) size 0x%08lX\n",
+      ERR(": Data  says: '%4.4s'(0x%08X) size 0x%08X\n",
          (char*)&This->lpBuffer[0], This->lpBuffer[0], This->lpBuffer[1]);
       return AVIERR_FILEREAD;
     }
index 83b8105..7539af2 100644 (file)
@@ -16,7 +16,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
+LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
 
 IDD_SAVEOPTIONS DIALOG FIXED IMPURE  43, 37, 196, 82
 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
index c5a7a32..035888c 100644 (file)
@@ -17,7 +17,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
+LANGUAGE LANG_KOREAN, SUBLANG_NEUTRAL
 
 IDD_SAVEOPTIONS DIALOG FIXED IMPURE  43, 37, 196, 82
 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
index e002c6a..9d6ce68 100644 (file)
@@ -18,7 +18,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-LANGUAGE LANG_DUTCH, SUBLANG_DEFAULT
+LANGUAGE LANG_DUTCH, SUBLANG_NEUTRAL
 
 IDD_SAVEOPTIONS DIALOG FIXED IMPURE  43, 37, 196, 82
 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
index 899014f..d275390 100644 (file)
@@ -16,7 +16,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COM_NO_WINDOWS_H
 #include <assert.h>
 #include <stdarg.h>
 
@@ -210,7 +209,7 @@ static HRESULT AVIFILE_FindStreamInTable(IAVIEditStreamImpl* const This,
 {
   DWORD n;
 
-  TRACE("(%p,%lu,%p,%p,%p,%d)\n",This,pos,ppStream,streamPos,
+  TRACE("(%p,%u,%p,%p,%p,%d)\n",This,pos,ppStream,streamPos,
         streamNr,bFindSample);
 
   if (pos < This->sInfo.dwStart)
@@ -234,7 +233,7 @@ static HRESULT AVIFILE_FindStreamInTable(IAVIEditStreamImpl* const This,
     if (streamNr != NULL)
       *streamNr = n;
 
-    TRACE(" -- pos=0 && b=1 -> (%p,%lu,%lu)\n",*ppStream, *streamPos, n);
+    TRACE(" -- pos=0 && b=1 -> (%p,%u,%u)\n",*ppStream, *streamPos, n);
     return AVIERR_OK;
   } else {
     *ppStream = NULL;
@@ -252,7 +251,7 @@ static LPVOID AVIFILE_ReadFrame(IAVIEditStreamImpl* const This,
 {
   PGETFRAME pg;
 
-  TRACE("(%p,%p,%ld)\n",This,pstream,pos);
+  TRACE("(%p,%p,%d)\n",This,pstream,pos);
 
   if (pstream == NULL)
     return NULL;
@@ -380,7 +379,7 @@ static ULONG   WINAPI IAVIEditStream_fnAddRef(IAVIEditStream*iface)
   IAVIEditStreamImpl *This = (IAVIEditStreamImpl *)iface;
   ULONG ref = InterlockedIncrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   return ref;
 }
@@ -391,7 +390,7 @@ static ULONG   WINAPI IAVIEditStream_fnRelease(IAVIEditStream*iface)
   DWORD i;
   ULONG ref = InterlockedDecrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   if (!ref) {
     /* release memory */
@@ -552,7 +551,7 @@ static HRESULT WINAPI IAVIEditStream_fnPaste(IAVIEditStream*iface,LONG*plStart,
   DWORD               startPos, endPos, streamNr, nStreams;
   ULONG               n;
 
-  TRACE("(%p,%p,%p,%p,%ld,%ld)\n",iface,plStart,plLength,
+  TRACE("(%p,%p,%p,%p,%d,%d)\n",iface,plStart,plLength,
        pSource,lStart,lLength);
 
   if (pSource == NULL)
@@ -774,7 +773,7 @@ static HRESULT WINAPI IAVIEditStream_fnSetInfo(IAVIEditStream*iface,
 {
   IAVIEditStreamImpl *This = (IAVIEditStreamImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n",iface,asi,size);
+  TRACE("(%p,%p,%d)\n",iface,asi,size);
 
   /* check parameters */
   if (asi == NULL)
@@ -860,7 +859,7 @@ static HRESULT WINAPI IEditAVIStream_fnInfo(IAVIStream*iface,
 {
   IEditAVIStreamImpl *This = (IEditAVIStreamImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n",iface,psi,size);
+  TRACE("(%p,%p,%d)\n",iface,psi,size);
 
   assert(This->pae != NULL);
 
@@ -886,7 +885,7 @@ static LONG    WINAPI IEditAVIStream_fnFindSample(IAVIStream*iface,LONG pos,
   PAVISTREAM stream;
   DWORD      streamPos, streamNr;
 
-  TRACE("(%p,%ld,0x%08lX)\n",iface,pos,flags);
+  TRACE("(%p,%d,0x%08X)\n",iface,pos,flags);
 
   if (flags & FIND_FROM_START)
     pos = (LONG)This->sInfo.dwStart;
@@ -923,7 +922,7 @@ static HRESULT WINAPI IEditAVIStream_fnReadFormat(IAVIStream*iface,LONG pos,
   DWORD               n;
   HRESULT             hr;
 
-  TRACE("(%p,%ld,%p,%p)\n",iface,pos,format,fmtsize);
+  TRACE("(%p,%d,%p,%p)\n",iface,pos,format,fmtsize);
 
   if (fmtsize == NULL || pos < This->sInfo.dwStart ||
       This->sInfo.dwStart + This->sInfo.dwLength <= pos)
@@ -957,7 +956,7 @@ static HRESULT WINAPI IEditAVIStream_fnReadFormat(IAVIStream*iface,LONG pos,
 static HRESULT WINAPI IEditAVIStream_fnSetFormat(IAVIStream*iface,LONG pos,
                                                  LPVOID format,LONG formatsize)
 {
-  TRACE("(%p,%ld,%p,%ld)\n",iface,pos,format,formatsize);
+  TRACE("(%p,%d,%p,%d)\n",iface,pos,format,formatsize);
 
   return AVIERR_UNSUPPORTED;
 }
@@ -973,7 +972,7 @@ static HRESULT WINAPI IEditAVIStream_fnRead(IAVIStream*iface,LONG start,
   LONG    readBytes, readSamples, count;
   HRESULT hr;
 
-  TRACE("(%p,%ld,%ld,%p,%ld,%p,%p) -- 0x%08lX\n",iface,start,samples,
+  TRACE("(%p,%d,%d,%p,%d,%p,%p) -- 0x%08X\n",iface,start,samples,
         buffer,buffersize,bytesread,samplesread,This->sInfo.fccType);
 
   /* check parameters */
@@ -1063,7 +1062,7 @@ static HRESULT WINAPI IEditAVIStream_fnWrite(IAVIStream*iface,LONG start,
                                              LONG buffersize,DWORD flags,
                                              LONG*sampwritten,LONG*byteswritten)
 {
-  TRACE("(%p,%ld,%ld,%p,%ld,0x%08lX,%p,%p)\n",iface,start,samples,buffer,
+  TRACE("(%p,%d,%d,%p,%d,0x%08X,%p,%p)\n",iface,start,samples,buffer,
         buffersize,flags,sampwritten,byteswritten);
 
   /* be sure return parameters have correct values */
@@ -1080,7 +1079,7 @@ static HRESULT WINAPI IEditAVIStream_fnDelete(IAVIStream*iface,LONG start,
 {
   IEditAVIStreamImpl *This = (IEditAVIStreamImpl *)iface;
 
-  TRACE("(%p,%ld,%ld)\n",iface,start,samples);
+  TRACE("(%p,%d,%d)\n",iface,start,samples);
 
   return IAVIEditStream_Cut((IAVIEditStream*)This->pae,&start,&samples,NULL);
 }
@@ -1091,7 +1090,7 @@ static HRESULT WINAPI IEditAVIStream_fnReadData(IAVIStream*iface,DWORD fcc,
   IAVIEditStreamImpl* const This = ((IEditAVIStreamImpl* const)iface)->pae;
   DWORD n;
 
-  TRACE("(%p,0x%08lX,%p,%p)\n",iface,fcc,lp,lpread);
+  TRACE("(%p,0x%08X,%p,%p)\n",iface,fcc,lp,lpread);
 
   /* check parameters */
   if (lp == NULL || lpread == NULL)
@@ -1112,7 +1111,7 @@ static HRESULT WINAPI IEditAVIStream_fnReadData(IAVIStream*iface,DWORD fcc,
 static HRESULT WINAPI IEditAVIStream_fnWriteData(IAVIStream*iface,DWORD fcc,
                                                  LPVOID lp,LONG size)
 {
-  TRACE("(%p,0x%08lX,%p,%ld)\n",iface,fcc,lp,size);
+  TRACE("(%p,0x%08X,%p,%d)\n",iface,fcc,lp,size);
 
   return AVIERR_UNSUPPORTED;
 }
@@ -1122,7 +1121,7 @@ static HRESULT WINAPI IEditAVIStream_fnSetInfo(IAVIStream*iface,
 {
   IEditAVIStreamImpl *This = (IEditAVIStreamImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n",iface,info,len);
+  TRACE("(%p,%p,%d)\n",iface,info,len);
 
   return IAVIEditStream_SetInfo((IAVIEditStream*)This->pae,info,len);
 }
index 573dda3..ac3a04d 100644 (file)
@@ -16,7 +16,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COM_NO_WINDOWS_H
 #include <assert.h>
 
 #include "extrachunk.h"
@@ -155,7 +154,7 @@ HRESULT FindChunkAndKeepExtras(LPEXTRACHUNKS extra,HMMIO hmmio,MMCKINFO *lpck,
   assert(hmmio != NULL);
   assert(lpck  != NULL);
 
-  TRACE("({%p,%lu},%p,%p,%p,0x%X)\n", extra->lp, extra->cb, hmmio, lpck,
+  TRACE("({%p,%u},%p,%p,%p,0x%X)\n", extra->lp, extra->cb, hmmio, lpck,
        lpckParent, flags);
 
   /* what chunk id and form/list type should we search? */
@@ -171,7 +170,7 @@ HRESULT FindChunkAndKeepExtras(LPEXTRACHUNKS extra,HMMIO hmmio,MMCKINFO *lpck,
   } else
     ckid = fccType = (FOURCC)-1; /* collect everything into extra! */
 
-  TRACE(": find ckid=0x%08lX fccType=0x%08lX\n", ckid, fccType);
+  TRACE(": find ckid=0x%08X fccType=0x%08X\n", ckid, fccType);
 
   for (;;) {
     hr = mmioDescend(hmmio, lpck, lpckParent, 0);
index 817c79a..24d669d 100644 (file)
@@ -20,7 +20,6 @@
 #include <stdarg.h>
 
 #define COBJMACROS
-#define COM_NO_WINDOWS_H
 
 #include "windef.h"
 #include "winbase.h"
@@ -207,7 +206,7 @@ HRESULT WINAPI DllCanUnloadNow(void)
  */
 BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved)
 {
-  TRACE("(%p,%ld,%p)\n", hInstDll, fdwReason, lpvReserved);
+  TRACE("(%p,%d,%p)\n", hInstDll, fdwReason, lpvReserved);
 
   switch (fdwReason) {
   case DLL_PROCESS_ATTACH:
index 172a0b0..558ff4a 100644 (file)
@@ -16,7 +16,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COM_NO_WINDOWS_H
 #include <assert.h>
 #include <stdarg.h>
 
@@ -187,7 +186,7 @@ static LPVOID  WINAPI IGetFrame_fnGetFrame(IGetFrame *iface, LONG lPos)
   LONG readBytes;
   LONG readSamples;
 
-  TRACE("(%p,%ld)\n", iface, lPos);
+  TRACE("(%p,%d)\n", iface, lPos);
 
   /* We don't want negative start values! -- marks invalid buffer content */
   if (lPos < 0)
@@ -303,7 +302,7 @@ static HRESULT WINAPI IGetFrame_fnBegin(IGetFrame *iface, LONG lStart,
 {
   IGetFrameImpl *This = (IGetFrameImpl *)iface;
 
-  TRACE("(%p,%ld,%ld,%ld)\n", iface, lStart, lEnd, lRate);
+  TRACE("(%p,%d,%d,%d)\n", iface, lStart, lEnd, lRate);
 
   This->bFixedStream = TRUE;
 
index af71fc4..5e9af16 100644 (file)
@@ -16,7 +16,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COM_NO_WINDOWS_H
 #include <assert.h>
 #include <stdarg.h>
 
@@ -164,7 +163,7 @@ static ULONG WINAPI ICMStream_fnAddRef(IAVIStream *iface)
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
   ULONG ref = InterlockedIncrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   /* also add reference to the nested stream */
   if (This->pStream != NULL)
@@ -178,7 +177,7 @@ static ULONG WINAPI ICMStream_fnRelease(IAVIStream* iface)
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
   ULONG ref = InterlockedDecrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   if (ref == 0) {
     /* destruct */
@@ -325,7 +324,7 @@ static HRESULT WINAPI ICMStream_fnInfo(IAVIStream *iface,LPAVISTREAMINFOW psi,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n", iface, psi, size);
+  TRACE("(%p,%p,%d)\n", iface, psi, size);
 
   if (psi == NULL)
     return AVIERR_BADPARAM;
@@ -344,7 +343,7 @@ static LONG WINAPI ICMStream_fnFindSample(IAVIStream *iface, LONG pos,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%ld,0x%08lX)\n",iface,pos,flags);
+  TRACE("(%p,%d,0x%08X)\n",iface,pos,flags);
 
   if (flags & FIND_FROM_START) {
     pos = This->sInfo.dwStart;
@@ -384,7 +383,7 @@ static HRESULT WINAPI ICMStream_fnReadFormat(IAVIStream *iface, LONG pos,
   LPBITMAPINFOHEADER lpbi;
   HRESULT            hr;
 
-  TRACE("(%p,%ld,%p,%p)\n", iface, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%p)\n", iface, pos, format, formatsize);
 
   if (formatsize == NULL)
     return AVIERR_BADPARAM;
@@ -432,7 +431,7 @@ static HRESULT WINAPI ICMStream_fnSetFormat(IAVIStream *iface, LONG pos,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%ld,%p,%ld)\n", iface, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%d)\n", iface, pos, format, formatsize);
 
   /* check parameters */
   if (format == NULL || formatsize <= 0)
@@ -586,7 +585,7 @@ static HRESULT WINAPI ICMStream_fnRead(IAVIStream *iface, LONG start,
 
   LPBITMAPINFOHEADER lpbi;
 
-  TRACE("(%p,%ld,%ld,%p,%ld,%p,%p)\n", iface, start, samples, buffer,
+  TRACE("(%p,%d,%d,%p,%d,%p,%p)\n", iface, start, samples, buffer,
        buffersize, bytesread, samplesread);
 
   /* clear return parameters if given */
@@ -680,7 +679,7 @@ static HRESULT WINAPI ICMStream_fnWrite(IAVIStream *iface, LONG start,
 
   HRESULT hr;
 
-  TRACE("(%p,%ld,%ld,%p,%ld,0x%08lX,%p,%p)\n", iface, start, samples,
+  TRACE("(%p,%d,%d,%p,%d,0x%08X,%p,%p)\n", iface, start, samples,
        buffer, buffersize, flags, sampwritten, byteswritten);
 
   /* clear return parameters if given */
@@ -723,7 +722,7 @@ static HRESULT WINAPI ICMStream_fnDelete(IAVIStream *iface, LONG start,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%ld,%ld)\n", iface, start, samples);
+  TRACE("(%p,%d,%d)\n", iface, start, samples);
 
   return IAVIStream_Delete(This->pStream, start, samples);
 }
@@ -733,7 +732,7 @@ static HRESULT WINAPI ICMStream_fnReadData(IAVIStream *iface, DWORD fcc,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,0x%08lX,%p,%p)\n", iface, fcc, lp, lpread);
+  TRACE("(%p,0x%08X,%p,%p)\n", iface, fcc, lp, lpread);
 
   assert(This->pStream != NULL);
 
@@ -745,7 +744,7 @@ static HRESULT WINAPI ICMStream_fnWriteData(IAVIStream *iface, DWORD fcc,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,0x%08lx,%p,%ld)\n", iface, fcc, lp, size);
+  TRACE("(%p,0x%08x,%p,%d)\n", iface, fcc, lp, size);
 
   assert(This->pStream != NULL);
 
@@ -755,7 +754,7 @@ static HRESULT WINAPI ICMStream_fnWriteData(IAVIStream *iface, DWORD fcc,
 static HRESULT WINAPI ICMStream_fnSetInfo(IAVIStream *iface,
                                           LPAVISTREAMINFOW info, LONG infolen)
 {
-  FIXME("(%p,%p,%ld): stub\n", iface, info, infolen);
+  FIXME("(%p,%p,%d): stub\n", iface, info, infolen);
 
   return E_FAIL;
 }
@@ -862,7 +861,7 @@ static HRESULT AVIFILE_EncodeFrame(IAVIStreamImpl *This,
       if (bDecreasedQual || dwCurQual == This->dwLastQuality)
        dwCurQual = (dwMinQual + dwMaxQual) / 2;
       else
-       FIXME(": no new quality computed min=%lu cur=%lu max=%lu last=%lu\n",
+       FIXME(": no new quality computed min=%u cur=%u max=%u last=%u\n",
              dwMinQual, dwCurQual, dwMaxQual, This->dwLastQuality);
 
       bDecreasedQual = TRUE;
index 57badd1..ce81151 100644 (file)
@@ -18,7 +18,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COM_NO_WINDOWS_H
 #include <stdarg.h>
 #include <string.h>
 
index 1bac19e..6d6c5d1 100644 (file)
@@ -16,7 +16,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COM_NO_WINDOWS_H
 #include <assert.h>
 #include <stdarg.h>
 
@@ -153,7 +152,7 @@ static ULONG   WINAPI ITmpFile_fnAddRef(IAVIFile *iface)
   ITmpFileImpl *This = (ITmpFileImpl *)iface;
   ULONG ref = InterlockedIncrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   return ref;
 }
@@ -163,7 +162,7 @@ static ULONG   WINAPI ITmpFile_fnRelease(IAVIFile *iface)
   ITmpFileImpl *This = (ITmpFileImpl *)iface;
   ULONG ref = InterlockedDecrement(&This->ref);
 
-  TRACE("(%p) -> %ld\n", iface, ref);
+  TRACE("(%p) -> %d\n", iface, ref);
 
   if (!ref) {
     unsigned int i;
@@ -188,7 +187,7 @@ static HRESULT WINAPI ITmpFile_fnInfo(IAVIFile *iface,
 {
   ITmpFileImpl *This = (ITmpFileImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n",iface,afi,size);
+  TRACE("(%p,%p,%d)\n",iface,afi,size);
 
   if (afi == NULL)
     return AVIERR_BADPARAM;
@@ -209,7 +208,7 @@ static HRESULT WINAPI ITmpFile_fnGetStream(IAVIFile *iface, PAVISTREAM *avis,
 
   ULONG nStream = (ULONG)-1;
 
-  TRACE("(%p,%p,0x%08lX,%ld)\n", iface, avis, fccType, lParam);
+  TRACE("(%p,%p,0x%08X,%d)\n", iface, avis, fccType, lParam);
 
   if (avis == NULL || lParam < 0)
     return AVIERR_BADPARAM;
@@ -260,7 +259,7 @@ static HRESULT WINAPI ITmpFile_fnCreateStream(IAVIFile *iface,PAVISTREAM *avis,
 static HRESULT WINAPI ITmpFile_fnWriteData(IAVIFile *iface, DWORD ckid,
                                           LPVOID lpData, LONG size)
 {
-  TRACE("(%p,0x%08lX,%p,%ld)\n", iface, ckid, lpData, size);
+  TRACE("(%p,0x%08X,%p,%d)\n", iface, ckid, lpData, size);
 
   return AVIERR_UNSUPPORTED;
 }
@@ -268,7 +267,7 @@ static HRESULT WINAPI ITmpFile_fnWriteData(IAVIFile *iface, DWORD ckid,
 static HRESULT WINAPI ITmpFile_fnReadData(IAVIFile *iface, DWORD ckid,
                                          LPVOID lpData, LONG *size)
 {
-  TRACE("(%p,0x%08lX,%p,%p)\n", iface, ckid, lpData, size);
+  TRACE("(%p,0x%08X,%p,%p)\n", iface, ckid, lpData, size);
 
   return AVIERR_UNSUPPORTED;
 }
@@ -283,7 +282,7 @@ static HRESULT WINAPI ITmpFile_fnEndRecord(IAVIFile *iface)
 static HRESULT WINAPI ITmpFile_fnDeleteStream(IAVIFile *iface, DWORD fccType,
                                              LONG lParam)
 {
-  TRACE("(%p,0x%08lX,%ld)\n", iface, fccType, lParam);
+  TRACE("(%p,0x%08X,%d)\n", iface, fccType, lParam);
 
   return AVIERR_UNSUPPORTED;
 }
index 8a0f6ab..e2f82fe 100644 (file)
@@ -16,7 +16,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define COM_NO_WINDOWS_H
 #include <assert.h>
 #include <stdarg.h>
 
@@ -315,7 +314,7 @@ static HRESULT WINAPI IAVIFile_fnInfo(IAVIFile *iface, LPAVIFILEINFOW afi,
 {
   IAVIFileImpl *This = (IAVIFileImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n",iface,afi,size);
+  TRACE("(%p,%p,%d)\n",iface,afi,size);
 
   if (afi == NULL)
     return AVIERR_BADPARAM;
@@ -349,7 +348,7 @@ static HRESULT WINAPI IAVIFile_fnGetStream(IAVIFile *iface, PAVISTREAM *avis,
 {
   IAVIFileImpl *This = (IAVIFileImpl *)iface;
 
-  TRACE("(%p,%p,0x%08lX,%ld)\n", iface, avis, fccType, lParam);
+  TRACE("(%p,%p,0x%08X,%d)\n", iface, avis, fccType, lParam);
 
   /* check parameter */
   if (avis == NULL)
@@ -425,7 +424,7 @@ static HRESULT WINAPI IAVIFile_fnWriteData(IAVIFile *iface, DWORD ckid,
 {
   IAVIFileImpl *This = (IAVIFileImpl *)iface;
 
-  TRACE("(%p,0x%08lX,%p,%ld)\n", iface, ckid, lpData, size);
+  TRACE("(%p,0x%08X,%p,%d)\n", iface, ckid, lpData, size);
 
   /* check parameters */
   if (lpData == NULL)
@@ -447,7 +446,7 @@ static HRESULT WINAPI IAVIFile_fnReadData(IAVIFile *iface, DWORD ckid,
 {
   IAVIFileImpl *This = (IAVIFileImpl *)iface;
 
-  TRACE("(%p,0x%08lX,%p,%p)\n", iface, ckid, lpData, size);
+  TRACE("(%p,0x%08X,%p,%p)\n", iface, ckid, lpData, size);
 
   return ReadExtraChunk(&This->extra, ckid, lpData, size);
 }
@@ -467,7 +466,7 @@ static HRESULT WINAPI IAVIFile_fnDeleteStream(IAVIFile *iface, DWORD fccType,
 {
   IAVIFileImpl *This = (IAVIFileImpl *)iface;
 
-  TRACE("(%p,0x%08lX,%ld)\n", iface, fccType, lParam);
+  TRACE("(%p,0x%08X,%d)\n", iface, fccType, lParam);
 
   /* check parameter */
   if (lParam < 0)
@@ -565,7 +564,7 @@ static HRESULT WINAPI IPersistFile_fnLoad(IPersistFile *iface,
   WCHAR wszStreamFmt[50];
   INT   len;
 
-  TRACE("(%p,%s,0x%08lX)\n", iface, debugstr_w(pszFileName), dwMode);
+  TRACE("(%p,%s,0x%08X)\n", iface, debugstr_w(pszFileName), dwMode);
 
   /* check parameter */
   if (pszFileName == NULL)
@@ -714,7 +713,7 @@ static HRESULT WINAPI IAVIStream_fnInfo(IAVIStream *iface,LPAVISTREAMINFOW psi,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%p,%ld)\n", iface, psi, size);
+  TRACE("(%p,%p,%d)\n", iface, psi, size);
 
   if (psi == NULL)
     return AVIERR_BADPARAM;
@@ -733,7 +732,7 @@ static LONG WINAPI IAVIStream_fnFindSample(IAVIStream *iface, LONG pos,
 {
   IAVIFileImpl *This = ((IAVIStreamImpl*)iface)->paf;
 
-  TRACE("(%p,%ld,0x%08lX)\n",iface,pos,flags);
+  TRACE("(%p,%d,0x%08X)\n",iface,pos,flags);
 
   /* Do we have data? */
   if (This->lpFormat == NULL)
@@ -770,7 +769,7 @@ static HRESULT WINAPI IAVIStream_fnReadFormat(IAVIStream *iface, LONG pos,
 {
   IAVIStreamImpl *This = (IAVIStreamImpl *)iface;
 
-  TRACE("(%p,%ld,%p,%p)\n", iface, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%p)\n", iface, pos, format, formatsize);
 
   if (formatsize == NULL)
     return AVIERR_BADPARAM;
@@ -798,7 +797,7 @@ static HRESULT WINAPI IAVIStream_fnSetFormat(IAVIStream *iface, LONG pos,
 {
   IAVIFileImpl *This = ((IAVIStreamImpl*)iface)->paf;
 
-  TRACE("(%p,%ld,%p,%ld)\n", iface, pos, format, formatsize);
+  TRACE("(%p,%d,%p,%d)\n", iface, pos, format, formatsize);
 
   /* check parameters */
   if (format == NULL || formatsize <= sizeof(PCMWAVEFORMAT))
@@ -855,7 +854,7 @@ static HRESULT WINAPI IAVIStream_fnRead(IAVIStream *iface, LONG start,
 {
   IAVIFileImpl *This = ((IAVIStreamImpl*)iface)->paf;
 
-  TRACE("(%p,%ld,%ld,%p,%ld,%p,%p)\n", iface, start, samples, buffer,
+  TRACE("(%p,%d,%d,%p,%d,%p,%p)\n", iface, start, samples, buffer,
        buffersize, bytesread, samplesread);
 
   /* clear return parameters if given */
@@ -929,7 +928,7 @@ static HRESULT WINAPI IAVIStream_fnWrite(IAVIStream *iface, LONG start,
 {
   IAVIFileImpl *This = ((IAVIStreamImpl*)iface)->paf;
 
-  TRACE("(%p,%ld,%ld,%p,%ld,0x%08lX,%p,%p)\n", iface, start, samples,
+  TRACE("(%p,%d,%d,%p,%d,0x%08X,%p,%p)\n", iface, start, samples,
        buffer, buffersize, flags, sampwritten, byteswritten);
 
   /* clear return parameters if given */
@@ -983,7 +982,7 @@ static HRESULT WINAPI IAVIStream_fnDelete(IAVIStream *iface, LONG start,
 {
   IAVIFileImpl *This = ((IAVIStreamImpl*)iface)->paf;
 
-  TRACE("(%p,%ld,%ld)\n", iface, start, samples);
+  TRACE("(%p,%d,%d)\n", iface, start, samples);
 
   /* check parameters */
   if (start < 0 || samples < 0)
@@ -1045,7 +1044,7 @@ static HRESULT WINAPI IAVIStream_fnWriteData(IAVIStream *iface, DWORD fcc,
 static HRESULT WINAPI IAVIStream_fnSetInfo(IAVIStream *iface,
                                           LPAVISTREAMINFOW info, LONG infolen)
 {
-  FIXME("(%p,%p,%ld): stub\n", iface, info, infolen);
+  FIXME("(%p,%p,%d): stub\n", iface, info, infolen);
 
   return E_FAIL;
 }