• Nico Weber's avatar
    More compiler whack-a-mole. · c006ff2a
    Nico Weber authored
    clang didn't like the reinterpret_cast either:
    ..\..\sandbox\win\sandbox_poc\pocdll\registry.cc(24,10) :  error(clang): case value is not a constant expression
        case reinterpret_cast<LONG_PTR>(HKEY_USERS):
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ..\..\sandbox\win\sandbox_poc\pocdll\registry.cc(24,10) :  note(clang): reinterpret_cast is not allowed in a constant expression
    
    Since this function doesn't prevent any duplication, just kill
    it and pass the string to Try() manually.
    
    No behavior change.
    
    BUG=82385
    R=cpu@chromium.org
    
    Review URL: https://codereview.chromium.org/543153002
    
    Cr-Commit-Position: refs/heads/master@{#293580}
    c006ff2a
registry.cc 1.66 KB