File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,9 @@ void sqlcipher_free(void *ptr, int sz) {
219
219
#if defined(__unix__ ) || defined(__APPLE__ )
220
220
munlock (ptr , sz );
221
221
#elif defined(_WIN32 )
222
- VirtualUnlock (ptr , sz );
222
+ #if !(defined(WINAPI_FAMILY ) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP ))
223
+ VirtualUnlock (ptr , sz );
224
+ #endif
223
225
#endif
224
226
#endif
225
227
}
@@ -240,7 +242,9 @@ void* sqlcipher_malloc(int sz) {
240
242
#if defined(__unix__ ) || defined(__APPLE__ )
241
243
mlock (ptr , sz );
242
244
#elif defined(_WIN32 )
245
+ #if !(defined(WINAPI_FAMILY ) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP ))
243
246
VirtualLock (ptr , sz );
247
+ #endif
244
248
#endif
245
249
}
246
250
#endif
You can’t perform that action at this time.
0 commit comments