introduce FIXME_ONCE
Signed-off-by: David Kahurani k.kahurani@gmail.com --- dlls/msvcrt/concurrency.c | 3 +-- dlls/msvcrt/cpp.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/msvcrt/concurrency.c b/dlls/msvcrt/concurrency.c index 932ed52..95cd0cc 100644 --- a/dlls/msvcrt/concurrency.c +++ b/dlls/msvcrt/concurrency.c @@ -2708,9 +2708,8 @@ bool __thiscall _ReentrantBlockingLock__TryAcquire(_ReentrantBlockingLock *this) /* ?wait@Concurrency@@YAXI@Z */ void __cdecl Concurrency_wait(unsigned int time) { - static int once;
- if (!once++) FIXME("(%d) stub!\n", time); + FIXME_ONCE("(%d) stub!\n", time);
Sleep(time); } diff --git a/dlls/msvcrt/cpp.c b/dlls/msvcrt/cpp.c index 6617237..66bfc9b 100644 --- a/dlls/msvcrt/cpp.c +++ b/dlls/msvcrt/cpp.c @@ -1122,8 +1122,7 @@ void CDECL __clean_type_info_names_internal(void *p) DEFINE_THISCALL_WRAPPER(type_info_name_internal_method,8) const char * __thiscall type_info_name_internal_method(type_info * _this, struct __type_info_node *node) { - static int once; - if (node && !once++) FIXME("type_info_node parameter ignored\n"); + if (node) FIXME_ONCE("type_info_node parameter ignored\n");
return type_info_name(_this); }