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

Issue 706643002: Fixed detection of WS_OVERLAPPED windows, bug introduced in change 6561311. (Closed)

Created:
6 years, 1 month ago by brucedawson
Modified:
6 years, 1 month ago
Reviewers:
jackhou1, ananta, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fixed detection of WS_OVERLAPPED windows, bug introduced in change 6561311. WS_OVERLAPPED is not a flag, it is zero. Code was added that detects it as a flag, using '&'. This bug was detected by VC++'s /analyze, giving this warning: src\ui\views\win\hwnd_message_handler.cc(874) : warning C6313: Incorrect operator: zero-valued flag cannot be tested with bitwise-and. BUG=427616 Committed: https://crrev.com/26b57c28c3d5d0b540095a0e081bf303163ea76b Cr-Commit-Position: refs/heads/master@{#302880}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M ui/views/win/hwnd_message_handler.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 12 (4 generated)
brucedawson
I've been running VC++'s /analyze on Chrome and it found this bug. The early-out code ...
6 years, 1 month ago (2014-11-05 18:19:38 UTC) #2
sadrul
Windows: sadrul@ --> sky@
6 years, 1 month ago (2014-11-05 19:06:11 UTC) #4
sky
+ananta
6 years, 1 month ago (2014-11-05 20:17:53 UTC) #6
ananta
lgtm
6 years, 1 month ago (2014-11-05 20:22:22 UTC) #7
sky
LGTM
6 years, 1 month ago (2014-11-05 20:25:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/706643002/1
6 years, 1 month ago (2014-11-05 20:57:06 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-11-05 21:57:05 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-11-05 21:57:48 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/26b57c28c3d5d0b540095a0e081bf303163ea76b
Cr-Commit-Position: refs/heads/master@{#302880}

Powered by Google App Engine
This is Rietveld 408576698