Fix 64-bit Windows issues
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4061 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/rfb_win32/CurrentUser.cxx b/win/rfb_win32/CurrentUser.cxx
index 7562d29..21531de 100644
--- a/win/rfb_win32/CurrentUser.cxx
+++ b/win/rfb_win32/CurrentUser.cxx
@@ -98,7 +98,7 @@
// Try to find the Shell Tray Icon window and take its token
// NB: This will only work under NT/2K (and later, but they're dealt with above)
// NB: If the shell is not running then this will return an Unsafe Null token.
- EnumDesktops(GetProcessWindowStation(), enumDesktops, (LONG)&h);
+ EnumDesktops(GetProcessWindowStation(), enumDesktops, (LPARAM)&h);
isSafe_ = (h != 0);
} else {
// Try to open the security token for the User-Mode process