summaryrefslogtreecommitdiff
path: root/alf/alfcompat.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2019-06-29 16:55:38 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2019-06-29 16:55:38 +0200
commitecfb4b72fec0c25ef416038ef22db5d34d687ee4 (patch)
tree119201f80df6c5bb6f40949a26d1015263cb4097 /alf/alfcompat.cpp
parentae25d8012939de481633fa3572e7cd598d8a5a5f (diff)
get rid of last usages of InterlockedIncrement
doesn't work right on Win95/NT 3.51
Diffstat (limited to 'alf/alfcompat.cpp')
-rw-r--r--alf/alfcompat.cpp10
1 files changed, 0 insertions, 10 deletions
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)
{