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:
daid 2016-03-11 15:13:09 +01:00
parent 3b66e887b0
commit 8980600292
2 changed files with 39 additions and 13 deletions

View file

@ -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