Cache and protect MasterKey - speeds up saving a lot
Added option to save database after every change Improved license information git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@226 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -224,3 +224,13 @@ bool lockPage(void* addr, int len){
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool unlockPage(void* addr, int len){
|
||||
#if defined(Q_WS_X11) || defined(Q_WS_MAC)
|
||||
return (munlock(addr, len)==0);
|
||||
#elif defined(Q_WS_WIN)
|
||||
return VirtualUnlock(addr, len);
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user