[5/6] winhttp: main.c: Add implementation for WinHttpOpenRequest

Dan Hipschman dsh at linux.ucla.edu
Thu Jul 17 20:24:16 CDT 2008


On Thu, Jul 17, 2008 at 05:38:29PM -0700, Zac Brown wrote:
>
> +    if (dwFlags & WINHTTP_FLAG_ESCAPE_PERCENT ||
> +        dwFlags & WINHTTP_FLAG_NULL_CODEPAGE ||
> +        dwFlags & WINHTTP_FLAG_ESCAPE_DISABLE ||
> +        dwFlags & WINHTTP_FLAG_ESCAPE_DISABLE_QUERY)

    if (dwFlags & (WINHTTP_FLAG_ESCAPE_PERCENT
                   | WINHTTP_FLAG_NULL_CODEPAGE
                   | WINHTTP_FLAG_ESCAPE_DISABLE
                   | WINHTTP_FLAG_ESCAPE_DISABLE_QUERY))

is shorter and more efficient since it boils down to one "test"
instruction (at least it should), rather than a bunch of branching
required by short-circuiting.



More information about the wine-devel mailing list