8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

Win64 adjustments.

This commit is contained in:
dimitr 2006-10-30 14:13:30 +00:00
parent 8ab73b4f61
commit f68e287a0b
2 changed files with 11 additions and 2 deletions

View File

@ -569,7 +569,7 @@ BOOL ValidateUser(HWND hParentWnd)
else {
szSysDbaPasswd[0] = '\0';
return (DialogBox
((HINSTANCE) GetWindowLong(hParentWnd, GWLP_HINSTANCE),
((HINSTANCE) GetWindowLongPtr(hParentWnd, GWLP_HINSTANCE),
MAKEINTRESOURCE(PASSWORD_DLG), hParentWnd,
(DLGPROC) PasswordDlgProc) > 0);
}

View File

@ -58,7 +58,16 @@ static const char* szWindowName = "Firebird Server"; // Used in iscguard.cpp
#ifndef GWLP_HINSTANCE
#define GWLP_HINSTANCE GWL_HINSTANCE
#endif
#ifndef GCLP_HICON
#define GCLP_HICON GCL_HICON
#endif
#ifndef LONG_PTR
#define LONG_PTR long
#endif
#define GetWindowLongPtr GetWindowLong
#define SetWindowLongPtr SetWindowLong
#define GetClassLongPtr GetClassLong
#define SetClassLongPtr SetClassLong
#endif
#endif // OS_WIN32_WINDOW_H