[pywin32-bugs] [ pywin32-Bugs-3009827 ] QueryDosDevice fails with error 234
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2010-06-03 19:35:29
|
Bugs item #3009827, was opened at 2010-06-01 11:17 Message generated for change (Comment added) made by andersjm You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: win32 Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Anders J. Munch (andersjm) Assigned to: Nobody/Anonymous (nobody) Summary: QueryDosDevice fails with error 234 Initial Comment: After attaching an additional USB device, win32file.QueryDosDevice(None) suddenly started failing with the exception: pywintypes.error: (234, 'QueryDosDevice', 'Der er flere data til r\xe5dighed.') Error 234 is ERROR_MORE_DATA, which indicates that the supplied buffer is too small. (The text translates to 'More data is available.) Looking at win32file.i, MyQueryDosDevice expects a too small buffer to result in ERROR_INSUFFICIENT_BUFFER; so presumably treating ERROR_MORE_DATA as synonymous will fix it. (Python 2.4.4, pywin32-208.) ---------------------------------------------------------------------- Comment By: Anders J. Munch (andersjm) Date: 2010-06-03 21:35 Message: XP. To reproduce you need for len(win32file.QueryDosDevice(None)) to exceed the initial buffer size of 8192 - or reduce the initial buffer size so that it does. ---------------------------------------------------------------------- Comment By: Roger Upole (rupole) Date: 2010-06-03 20:49 Message: I can't reproduce this on XP, Vista, or Windows 7. Which OS are you on ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=3009827&group_id=78018 |