Win32: fix potential error with thumbbar buttons