mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
CURA-1104: Fix the incorrect "failed to eject drive" message for windows.
The C windows API call was wrong. The lpBytesReturned parameter was set to
NULL. While the docmentation at:
aa363406
(v=vs.85).aspx
states that it CANNOT be NULL if lpOverlapped is NULL. Overlapped is for
async operations. So the easiest way to fix this is to supply a proper
pointer.
I've also removed unused includes. And supplied the DeviceIoControl with
proper ctypes calling information to prevent other python->c problems.
This commit is contained in:
parent
3b66e887b0
commit
8980600292
2 changed files with 39 additions and 13 deletions
|
@ -4,9 +4,9 @@
|
|||
import threading
|
||||
import time
|
||||
|
||||
from UM.Signal import Signal
|
||||
from UM.Message import Message
|
||||
from UM.OutputDevice.OutputDevicePlugin import OutputDevicePlugin
|
||||
from UM.Logger import Logger
|
||||
|
||||
from . import RemovableDriveOutputDevice
|
||||
from UM.Logger import Logger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue