#endif
int LOADER_DEBUG=1; // active only if compiled with -DDETAILED_OUT
//#define DETAILED_OUT
-static inline void dbgprintf(char* fmt, ...)
+static inline void dbgprintf(const char* fmt, ...)
{
#ifdef DETAILED_OUT
if(LOADER_DEBUG)
*/
typedef struct __attribute__((__packed__))
{
- char hay[0x40];
+ char hay[0x3C];
+ void* pbUnknown; //0x3C
unsigned long cbFormat; //0x40
char* pbFormat; //0x44
} MY_MEDIA_TYPE;
{
if (!dest)
return E_POINTER;
- memset(dest, 0, sizeof(MY_MEDIA_TYPE));
+
+ dest->pbUnknown = NULL;
+ dest->cbFormat = cbFormat;
if (cbFormat)
{
dest->pbFormat = (char*) my_mreq(cbFormat, 0);
if (!dest->pbFormat)
return E_OUTOFMEMORY;
}
+ else
+ {
+ dest->pbFormat=NULL;
+ }
return S_OK;
}
static HRESULT WINAPI expMoCreateMediaType(MY_MEDIA_TYPE** dest, DWORD cbFormat)