summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/Libgcrypt/random/rndw32.c
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-07-23 10:38:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-07-23 10:38:14 +0000
commitb0856fbf8beebf4ffc5592096739e3d65c1bc3c7 (patch)
tree401086ceec1fb54ae98d07d21527bc6f60367796 /plugins/MirOTR/Libgcrypt/random/rndw32.c
parentf7d6084247f9f89fe0eec55dd9d2522038ff23e3 (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.c5
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)