diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-08-25 09:38:49 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2022-08-25 09:38:49 +0200 |
commit | 99c3cda01a4bb4d1f08b93753ff3b79bcbc3e63e (patch) | |
tree | 809378a9c00b2ef9b40e49617c3d4b612d81b6ef /src/Common | |
parent | 46ecb1a66de8abade4566cf73dcaec5d70e18920 (diff) | |
download | VeraCrypt-99c3cda01a4bb4d1f08b93753ff3b79bcbc3e63e.tar.gz VeraCrypt-99c3cda01a4bb4d1f08b93753ff3b79bcbc3e63e.zip |
Windows: use newer MEMORYSTATUSEX structure in call to GlobalMemoryStatusEx
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/Random.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Common/Random.c b/src/Common/Random.c index d5c09848..fd836c7f 100644 --- a/src/Common/Random.c +++ b/src/Common/Random.c @@ -832,3 +832,3 @@ BOOL FastPoll (void) LARGE_INTEGER performanceCount; - MEMORYSTATUS memoryStatus; + MEMORYSTATUSEX memoryStatus; HANDLE handle; @@ -873,5 +873,5 @@ BOOL FastPoll (void) file, user bytes of address space, and free user bytes */ - memoryStatus.dwLength = sizeof (MEMORYSTATUS); + memoryStatus.dwLength = sizeof (MEMORYSTATUSEX); GlobalMemoryStatusEx (&memoryStatus); - RandaddBuf ((unsigned char *) &memoryStatus, sizeof (MEMORYSTATUS)); + RandaddBuf ((unsigned char *) &memoryStatus, sizeof (MEMORYSTATUSEX)); |