• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiond560c5651ed71f72dee9110dc598a54c222a88a3 (tree)
Zeit2019-10-07 23:13:18
Autoryyagi <yyagi.dtxmania@gmai...>
Commiteryyagi

Log Message

#39661 [Dridi's PATCH 7/9] PowerGetActiveScheme may fail with Wine.
I added a stub in Wine, but it currently does nothing.

Ändern Zusammenfassung

  • delete: "FDK/\343\202\263\343\203\274\343\203\211/00.\345\205\261\351\200\232/CPowerPlan.cs"

Diff

--- "a/FDK/\343\202\263\343\203\274\343\203\211/00.\345\205\261\351\200\232/CPowerPlan.cs"
+++ "b/FDK/\343\202\263\343\203\274\343\203\211/00.\345\205\261\351\200\232/CPowerPlan.cs"
@@ -135,7 +135,10 @@ namespace FDK
135135 private static Guid GetActivePowerPlan()
136136 {
137137 IntPtr pCurrentSchemeGuid = IntPtr.Zero;
138- CWin32.PowerGetActiveScheme( IntPtr.Zero, ref pCurrentSchemeGuid );
138+ if (CWin32.PowerGetActiveScheme(IntPtr.Zero, ref pCurrentSchemeGuid) != 0)
139+ {
140+ return Guid.Empty;
141+ }
139142 var currentSchemeGuid = (Guid) Marshal.PtrToStructure( pCurrentSchemeGuid, typeof( Guid ) );
140143 return currentSchemeGuid;
141144 }