Nikolay Sivov : msxml3: Callback only if state really changed.
Module: wine Branch: master Commit: 8630368afb5db6c85f8f65ae1960c1f0f0cdb1ac URL: http://source.winehq.org/git/wine.git/?a=commit;h=8630368afb5db6c85f8f65ae19... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Fri Oct 8 11:41:48 2010 +0400 msxml3: Callback only if state really changed. --- dlls/msxml3/httprequest.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c index e347096..c09f31e 100644 --- a/dlls/msxml3/httprequest.c +++ b/dlls/msxml3/httprequest.c @@ -90,9 +90,11 @@ static inline httprequest *impl_from_IXMLHTTPRequest( IXMLHTTPRequest *iface ) static void httprequest_setreadystate(httprequest *This, READYSTATE state) { + READYSTATE last = This->state; + This->state = state; - if (This->sink) + if (This->sink && last != state) { DISPPARAMS params;
participants (1)
-
Alexandre Julliard