diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-26 08:46:45 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-26 08:46:45 +0000 |
commit | 12718514fb673dbb72f7d93ea3bb34c9574bd69a (patch) | |
tree | 91569255bd22163c21eb9f22ceb388db16f53e19 /plugins/KeyboardNotify | |
parent | 3856c86d711275b80e09371cad10b8b828a5879a (diff) |
replace sprintf to mir_snprintf (part 7)
removed not used files
git-svn-id: http://svn.miranda-ng.org/main/trunk@5490 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/KeyboardNotify')
-rw-r--r-- | plugins/KeyboardNotify/src/keyboard.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/KeyboardNotify/src/keyboard.cpp b/plugins/KeyboardNotify/src/keyboard.cpp index 7379181fd9..b0a6761738 100644 --- a/plugins/KeyboardNotify/src/keyboard.cpp +++ b/plugins/KeyboardNotify/src/keyboard.cpp @@ -55,11 +55,11 @@ BOOL OpenKeyboardDevice() return TRUE;
do {
- _snwprintf(aux1, sizeof(aux1), _T("Kbd%d"), i);
- _snwprintf(aux2, sizeof(aux2), _T("\\Device\\KeyboardClass%d"), i);
+ mir_sntprintf(aux1, SIZEOF(aux1), _T("Kbd%d"), i);
+ mir_sntprintf(aux2, SIZEOF(aux2), _T("\\Device\\KeyboardClass%d"), i);
DefineDosDevice(DDD_RAW_TARGET_PATH, aux1, aux2);
- _snwprintf(aux1, sizeof(aux1), _T("\\\\.\\Kbd%d"), i);
+ mir_sntprintf(aux1, SIZEOF(aux1), _T("\\\\.\\Kbd%d"), i);
hKbdDev[i] = CreateFile(aux1, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
} while (hKbdDev[i] != INVALID_HANDLE_VALUE && ++i < MAX_KBDHANDLES);
@@ -105,7 +105,7 @@ void CloseKeyboardDevice() if (hKbdDev[i] != INVALID_HANDLE_VALUE)
CloseHandle(hKbdDev[i]);
- _snwprintf(aux, sizeof(aux), _T("Kbd%d"), i);
+ mir_sntprintf(aux, SIZEOF(aux), _T("Kbd%d"), i);
DefineDosDevice(DDD_REMOVE_DEFINITION, aux, NULL);
} while (hKbdDev[i] != INVALID_HANDLE_VALUE && ++i < MAX_KBDHANDLES);
|