Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: third_party/hidapi/hidapi_linux.c.patch

Issue 25666010: Adding third party library hidapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 diff --git a/third_party/hidapi/hidapi_linux.c b/third_party/hidapi/hidapi_linux .c
Kees Cook 2013/12/04 20:49:36 What's the purpose of this patch? Is this just sil
Bei Zhang 2013/12/10 22:24:11 Yes, it is.
2 index 38f6753..21d04c0 100644
3 --- a/third_party/hidapi/hidapi_linux.c
4 +++ b/third_party/hidapi/hidapi_linux.c
5 @@ -305,7 +305,7 @@ static int get_device_string(hid_device *dev, enum device_st ring_id key, wchar_t
6 const char *str;
7 const char *key_str = NULL;
8
9 - if (key >= 0 && key < DEVICE_STRING_COUN T) {
10 + if (key < DEVICE_STRING_COUNT) {
11 key_str = device_string_names[ke y];
12 } else {
13 ret = -1;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698