[MPlayer-cvslog] r30900 - trunk/loader/win32.c

Steinar H. Gunderson sgunderson at bigfoot.com
Mon Mar 15 16:28:48 CET 2010


On Mon, Mar 15, 2010 at 04:24:49PM +0100, Diego Biurrun wrote:
>> +#if 1
>> +    // leave it here for testing win9x-only codecs
>> +    c->dwPlatformId=VER_PLATFORM_WIN32_WINDOWS;
>> +    strcpy(CSDVersion, " B");
>> +#else
>> +    c->dwPlatformId=VER_PLATFORM_WIN32_NT; // let's not make DLL assume that it can read CR* registers
>> +    strcpy(CSDVersion, "Service Pack 3");
>> +#endif
> Ugh, do we need to keep such ugly debug code?

It was copied from the *A version. Should I remove the #else arm from both
functions?

>> +    MultiByteToWideChar(65001, 0x0, CSDVersion, -1, c->szCSDVersion, 128);
>> +    dbgprintf("  Major version: %d\n  Minor version: %d\n  Build number: 0x%08x\n"
>> +             "  Platform Id: %s\n Version string: '%s'\n",
>> +      c->dwMajorVersion, c->dwMinorVersion, c->dwBuildNumber,
>> +             (c->dwPlatformId==VER_PLATFORM_WIN32_WINDOWS ? "VER_PLATFORM_WIN32_WINDOWS" :
>> +       (c->dwPlatformId==VER_PLATFORM_WIN32_NT ? "VER_PLATFORM_WIN32_NT" : "Unknown")),
>> +             CSDVersion);
> The indentation of this function call is .. interesting.

It's actually not that inconsistent, but having multiple nested ?: inside a
printf might not have been the best of ideas...

/* Steinar */
-- 
Homepage: http://www.sesse.net/


More information about the MPlayer-cvslog mailing list