stub for GetDevicePowerState

Rein Klazes rklazes at xs4all.nl
Fri Mar 14 10:22:53 CST 2003


hi,

Fix a crash when closing Eudora.

Changelog:
	dlls/kernel	: kernel32.spec
	win32		: newfns.c

	Add stub for GetDevicePowerState().

Rein.
-- 
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/dlls/kernel/kernel32.spec	2003-03-04 11:19:15.000000000 +0100
+++ mywine/dlls/kernel/kernel32.spec	2003-03-14 12:21:14.000000000 +0100
@@ -384,7 +384,7 @@
 @ stdcall GetDefaultCommConfigA(str ptr long) GetDefaultCommConfigA
 @ stdcall GetDefaultCommConfigW(wstr ptr long) GetDefaultCommConfigW
 @ stub GetDefaultSortkeySize
-@ stub GetDevicePowerState
+@ stdcall GetDevicePowerState(long ptr) GetDevicePowerState
 @ stdcall GetDiskFreeSpaceA(str ptr ptr ptr ptr) GetDiskFreeSpaceA
 @ stdcall GetDiskFreeSpaceW(wstr ptr ptr ptr ptr) GetDiskFreeSpaceW
 @ stdcall GetDriveTypeA(str) GetDriveTypeA
--- wine/win32/newfns.c	2003-01-16 07:13:37.000000000 +0100
+++ mywine/win32/newfns.c	2003-03-14 12:41:42.000000000 +0100
@@ -311,3 +311,12 @@
     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     return FALSE;
 }
+
+/******************************************************************************
+ *           GetDevicePowerState   (KERNEL32.@)
+ */
+BOOL WINAPI GetDevicePowerState(HANDLE hDevice, BOOL* pfOn)
+{
+    FIXME("(hDevice %p pfOn %p): stub\n", hDevice, pfOn);
+    return TRUE; /* no information */
+}


More information about the wine-patches mailing list