{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/Windows-Driver-Frameworks/issues/1","labels_url":"https://api.github.com/repos/Microsoft/Windows-Driver-Frameworks/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Windows-Driver-Frameworks/issues/1/comments","events_url":"https://api.github.com/repos/Microsoft/Windows-Driver-Frameworks/issues/1/events","html_url":"https://github.com/Microsoft/Windows-Driver-Frameworks/issues/1","id":62918534,"number":1,"title":"Incorrect interval check in Mx::MxDelayExecutionThread()","user":{"login":"maksqwe","id":2767700,"avatar_url":"https://avatars.githubusercontent.com/u/2767700?v=3","gravatar_id":"","url":"https://api.github.com/users/maksqwe","html_url":"https://github.com/maksqwe","followers_url":"https://api.github.com/users/maksqwe/followers","following_url":"https://api.github.com/users/maksqwe/following{/other_user}","gists_url":"https://api.github.com/users/maksqwe/gists{/gist_id}","starred_url":"https://api.github.com/users/maksqwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maksqwe/subscriptions","organizations_url":"https://api.github.com/users/maksqwe/orgs","repos_url":"https://api.github.com/users/maksqwe/repos","events_url":"https://api.github.com/users/maksqwe/events{/privacy}","received_events_url":"https://api.github.com/users/maksqwe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T08:39:59Z","updated_at":"2015-03-19T16:45:16Z","closed_at":null,"body":"```C++\r\nMx::MxDelayExecutionThread(\r\n    __in KPROCESSOR_MODE  WaitMode,\r\n    __in BOOLEAN  Alertable,\r\n    __in PLARGE_INTEGER  Interval\r\n    )\r\n{\r\n    UNREFERENCED_PARAMETER(WaitMode);\r\n\r\n    LARGE_INTEGER intervalMillisecond;\r\n\r\n    if (Interval < 0) // < =====\r\n    {\r\n        intervalMillisecond.QuadPart = -1 * Interval->QuadPart;\r\n    }\r\n    else\r\n    {\r\n        intervalMillisecond.QuadPart = Interval->QuadPart;\r\n    }\r\n\r\n    intervalMillisecond.QuadPart /= 10000;\r\n\r\n    SleepEx((DWORD)intervalMillisecond.QuadPart, Alertable);\r\n}\r\n```\r\nInterval is a pointer(PLARGE_INTEGER) that always >0\r\n\r\n```C++\r\nif (Interval->QuadPart < 0)\r\n{\r\n    intervalMillisecond.QuadPart = -1 * Interval->QuadPart;\r\n}\r\n```\r\n???"},"comment":{"url":"https://api.github.com/repos/Microsoft/Windows-Driver-Frameworks/issues/comments/83656727","html_url":"https://github.com/Microsoft/Windows-Driver-Frameworks/issues/1#issuecomment-83656727","issue_url":"https://api.github.com/repos/Microsoft/Windows-Driver-Frameworks/issues/1","id":83656727,"user":{"login":"amargarit","id":1177189,"avatar_url":"https://avatars.githubusercontent.com/u/1177189?v=3","gravatar_id":"","url":"https://api.github.com/users/amargarit","html_url":"https://github.com/amargarit","followers_url":"https://api.github.com/users/amargarit/followers","following_url":"https://api.github.com/users/amargarit/following{/other_user}","gists_url":"https://api.github.com/users/amargarit/gists{/gist_id}","starred_url":"https://api.github.com/users/amargarit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amargarit/subscriptions","organizations_url":"https://api.github.com/users/amargarit/orgs","repos_url":"https://api.github.com/users/amargarit/repos","events_url":"https://api.github.com/users/amargarit/events{/privacy}","received_events_url":"https://api.github.com/users/amargarit/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T16:45:16Z","updated_at":"2015-03-19T16:45:16Z","body":"Nice find, thank you!"}}