wininet(2/6): Store entries in url cache with valid expiration date
Alexandre Julliard
julliard at winehq.org
Thu Mar 3 08:19:07 CST 2011
Juan Lang <juan.lang at gmail.com> writes:
> + if (ret)
> + {
> + ret = FALSE;
> + num = strtoulW(ptr, &nextPtr, 10);
> + if (nextPtr > ptr && *nextPtr == ':' && num <= 59)
> + {
> + ptr = nextPtr + 1;
> + st.wMinute = (WORD)num;
> + ret = TRUE;
> + }
> + }
> + if (ret)
> + {
> + ret = FALSE;
> + num = strtoulW(ptr, &nextPtr, 10);
> + if (nextPtr > ptr && isspaceW(*nextPtr) && num <= 59)
> + {
> + ptr = nextPtr + 1;
> + st.wSecond = (WORD)num;
> + ret = TRUE;
> + }
> + }
> + if (ret)
> + {
> + static const WCHAR gmt[]= { 'G','M','T',0 };
> +
> + ret = FALSE;
> + while (isspaceW(*ptr))
> + ptr++;
> + if (!strcmpW(ptr, gmt))
> + ret = TRUE;
> + }
You may want to consider using 'return', it's quite convenient...
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list