[webkit-changes] [WebKit/WebKit] a9296b: WTF::Win32Handle: Check the DuplicateHandle result

Fujii Hironori noreply at github.com
Sun May 28 01:13:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a9296b7cf56e03c1b082f96c577bff4ef6fca82f
      https://github.com/WebKit/WebKit/commit/a9296b7cf56e03c1b082f96c577bff4ef6fca82f
  Author: Fujii Hironori <Hironori.Fujii at sony.com>
  Date:   2023-05-28 (Sun, 28 May 2023)

  Changed paths:
    M Source/WTF/wtf/win/Win32Handle.cpp

  Log Message:
  -----------
  WTF::Win32Handle: Check the DuplicateHandle result
https://bugs.webkit.org/show_bug.cgi?id=257435

Reviewed by Yusuke Suzuki.

It assumed the variable `duplicate` was set to INVALID_HANDLE_VALUE if
DuplicateHandle failed. But, it's not clear what happens in such a
case.

* Source/WTF/wtf/win/Win32Handle.cpp:
(WTF::duplicateHandle): Check the result of DuplicateHandle.

Canonical link: https://commits.webkit.org/264637@main




More information about the webkit-changes mailing list