From ecfb4b72fec0c25ef416038ef22db5d34d687ee4 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Sat, 29 Jun 2019 16:55:38 +0200 Subject: get rid of last usages of InterlockedIncrement doesn't work right on Win95/NT 3.51 --- alf/alfcompat.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'alf/alfcompat.cpp') diff --git a/alf/alfcompat.cpp b/alf/alfcompat.cpp index 5c743ce..3895545 100644 --- a/alf/alfcompat.cpp +++ b/alf/alfcompat.cpp @@ -232,16 +232,6 @@ ALF_GetAveCharWidth(HDC hdc) return (s.cx / 26 + 1) / 2; } -void -ALF_UniqueCounterValue(LONG_PTR *pCounterId, LONG_PTR *pCounterValue) -{ - static LONG counter = 0; - - LONG r = InterlockedIncrement(&counter); - *pCounterId = (LONG_PTR)&counter; - *pCounterValue = r; -} - static HTHEME WINAPI ALF_Compat_fallbackOpenThemeData(HWND window, LPCWSTR classNames) { -- cgit v1.2.3