We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8338f32 commit c7986f2Copy full SHA for c7986f2
1 file changed
src/crypto_impl.c
@@ -219,7 +219,9 @@ void sqlcipher_free(void *ptr, int sz) {
219
#if defined(__unix__) || defined(__APPLE__)
220
munlock(ptr, sz);
221
#elif defined(_WIN32)
222
- VirtualUnlock(ptr, sz);
+#if !(defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP || WINAPI_FAMILY == WINAPI_FAMILY_APP))
223
+VirtualUnlock(ptr, sz);
224
+#endif
225
#endif
226
227
}
@@ -240,7 +242,9 @@ void* sqlcipher_malloc(int sz) {
240
242
241
243
mlock(ptr, sz);
244
245
246
VirtualLock(ptr, sz);
247
248
249
250
0 commit comments