[dart:io][windows] Set the last error when a signal is unsupported

fixes #28603

R=fschneider@google.com

Review-Url: https://codereview.chromium.org/2779373004 .
This commit is contained in:
Zach Anderson 2017-03-29 15:39:40 -07:00
parent 141b6351ba
commit cc10a46a1d

View file

@ -983,6 +983,7 @@ intptr_t GetWinSignal(intptr_t signal) {
intptr_t Process::SetSignalHandler(intptr_t signal) {
signal = GetWinSignal(signal);
if (signal == -1) {
SetLastError(ERROR_NOT_SUPPORTED);
return -1;
}