Skip to content

Commit edc9ae7

Browse files
committed
gh-153091: Fix os.listvolumes() should be only available for MS_WINDOWS_DESKTOP
``FindFirstVolumeW`` is only supported on Windows Desktop (not in UWP).
1 parent 9f9787d commit edc9ae7

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Make ``os.listvolumes()`` only available in ``MS_WINDOWS_DESKTOP`` (not
2+
supported in Windows UWP).

Modules/clinic/posixmodule.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/posixmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5197,7 +5197,7 @@ os_listdrives_impl(PyObject *module)
51975197

51985198
#endif /* MS_WINDOWS_DESKTOP || MS_WINDOWS_SYSTEM */
51995199

5200-
#if defined(MS_WINDOWS_APP) || defined(MS_WINDOWS_SYSTEM)
5200+
#if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_SYSTEM)
52015201

52025202
/*[clinic input]
52035203
os.listvolumes
@@ -5260,7 +5260,7 @@ os_listvolumes_impl(PyObject *module)
52605260
return result;
52615261
}
52625262

5263-
#endif /* MS_WINDOWS_APP || MS_WINDOWS_SYSTEM */
5263+
#endif /* MS_WINDOWS_DESKTOP || MS_WINDOWS_SYSTEM */
52645264

52655265
#if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_SYSTEM)
52665266

0 commit comments

Comments
 (0)