sourcehook/generate/sourcehook.hxx
changeset 387 093c72464b35
parent 386 08583103ba6f
child 412 43098e572d24
     1.1 --- a/sourcehook/generate/sourcehook.hxx	Sun Oct 07 23:00:38 2007 +0000
     1.2 +++ b/sourcehook/generate/sourcehook.hxx	Mon Oct 08 14:20:51 2007 +0000
     1.3 @@ -841,7 +841,7 @@
     1.4  
     1.5  #define SH_CALL_HOOKS(post, params) \
     1.6  	prev_res = MRES_IGNORED; \
     1.7 -	while ( iter = static_cast<IMyDelegate*>(pContext->GetNext()) ) \
     1.8 +	while ( (iter = static_cast<IMyDelegate*>(pContext->GetNext())) ) \
     1.9  	{ \
    1.10  		cur_res = MRES_IGNORED; \
    1.11  		plugin_ret = iter->Call params; \
    1.12 @@ -893,7 +893,7 @@
    1.13  
    1.14  #define SH_CALL_HOOKS_void(post, params) \
    1.15  	prev_res = MRES_IGNORED; \
    1.16 -	while ( iter = static_cast<IMyDelegate*>(pContext->GetNext()) ) \
    1.17 +	while ( (iter = static_cast<IMyDelegate*>(pContext->GetNext())) ) \
    1.18  	{ \
    1.19  		cur_res = MRES_IGNORED; \
    1.20  		iter->Call params; \