Fix #10854. Make use of the new path and name attributes on ImportError
for extension modules on Windows.
diff --git a/Python/dynload_win.c b/Python/dynload_win.c
index 2cbfe9f..ef3e2c5 100644
--- a/Python/dynload_win.c
+++ b/Python/dynload_win.c
@@ -254,8 +254,9 @@
                         theLength));
             }
             if (message != NULL) {
-                PyErr_SetObject(PyExc_ImportError, message);
-                Py_DECREF(message);
+                PyErr_SetFromImportErrorWithNameAndPath(message,
+                                        PyUnicode_FromString(shortname),
+                                        pathname);
             }
             return NULL;
         } else {