diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-23 10:38:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-23 10:38:14 +0000 |
commit | b0856fbf8beebf4ffc5592096739e3d65c1bc3c7 (patch) | |
tree | 401086ceec1fb54ae98d07d21527bc6f60367796 /plugins/MirOTR/Libgcrypt/random/rndw32.c | |
parent | f7d6084247f9f89fe0eec55dd9d2522038ff23e3 (diff) |
compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/Libgcrypt/random/rndw32.c')
-rw-r--r-- | plugins/MirOTR/Libgcrypt/random/rndw32.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/MirOTR/Libgcrypt/random/rndw32.c b/plugins/MirOTR/Libgcrypt/random/rndw32.c index 71cca0364c..f1a4105762 100644 --- a/plugins/MirOTR/Libgcrypt/random/rndw32.c +++ b/plugins/MirOTR/Libgcrypt/random/rndw32.c @@ -513,7 +513,7 @@ slow_gatherer ( void (*add)(const void*, size_t, enum random_origins), status = RegQueryValueEx (hKey, "ProductType", 0, NULL, szValue, &dwSize); - if (status == ERROR_SUCCESS && stricmp (szValue, "WinNT")) + if (status == ERROR_SUCCESS && _stricmp(szValue, "WinNT")) { /* Note: There are (at least) three cases for ProductType: WinNT = NT Workstation, ServerNT = NT Server, LanmanNT = @@ -602,8 +602,7 @@ slow_gatherer ( void (*add)(const void*, size_t, enum random_origins), char szDevice[50]; /* Check whether we can access this device. */ - snprintf (szDevice, sizeof szDevice, "\\\\.\\PhysicalDrive%d", - drive_no); + _snprintf(szDevice, sizeof szDevice, "\\\\.\\PhysicalDrive%d", drive_no); hDevice = CreateFile (szDevice, 0, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); if (hDevice == INVALID_HANDLE_VALUE) |