Commit 428f6f6c authored by Daniel Cheng's avatar Daniel Cheng Committed by Commit Bot

IsKeyboardPresentOnSlate(): null check before assigning to result

Bug: 805881
Change-Id: I29434a3e34a816412696188674ae9ecf47e6fed6
Reviewed-on: https://chromium-review.googlesource.com/899945Reviewed-by: default avatarJustin Schuh <jschuh@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534204}
parent 0271f047
......@@ -166,7 +166,8 @@ bool IsKeyboardPresentOnSlate(std::string* reason, HWND hwnd) {
bool result = false;
if (GetVersion() < VERSION_WIN8) {
*reason = "Detection not supported";
if (reason)
*reason = "Detection not supported";
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment