diff --git a/demo/Skylark.WinForms.Demo/WinFormsDemoWallpaper/WinFormsDemoWallpaper/WinFormsDemoWallpaper.csproj b/demo/Skylark.WinForms.Demo/WinFormsDemoWallpaper/WinFormsDemoWallpaper/WinFormsDemoWallpaper.csproj index 7be589ce..908c91db 100644 --- a/demo/Skylark.WinForms.Demo/WinFormsDemoWallpaper/WinFormsDemoWallpaper/WinFormsDemoWallpaper.csproj +++ b/demo/Skylark.WinForms.Demo/WinFormsDemoWallpaper/WinFormsDemoWallpaper/WinFormsDemoWallpaper.csproj @@ -13,7 +13,7 @@ - + diff --git a/src/Skylark.Wing/Helper/DesktopIcon.cs b/src/Skylark.Wing/Helper/DesktopIcon.cs index 6015a56b..59964598 100644 --- a/src/Skylark.Wing/Helper/DesktopIcon.cs +++ b/src/Skylark.Wing/Helper/DesktopIcon.cs @@ -106,7 +106,7 @@ public static bool FixHandle(IntPtr Handle) if (IntPtr != IntPtr.Zero) { - //WorkerW = SWHWAPI.FindWindowEx(IntPtr.Zero, TopHandle, "WorkerW", IntPtr.Zero); + WorkerW = SWHWAPI.FindWindowEx(IntPtr.Zero, TopHandle, "WorkerW", IntPtr.Zero); } return true; @@ -158,6 +158,7 @@ private static bool SetParent(IntPtr Handle, IntPtr Progman, IntPtr WorkerW) } IntPtr Return = SWNM.SetParent(Handle, Progman); + if (Return.Equals(IntPtr.Zero)) { return false; diff --git a/src/Skylark.Wing/Skylark.Wing.cs b/src/Skylark.Wing/Skylark.Wing.cs index 1dee59ee..0415cc96 100644 --- a/src/Skylark.Wing/Skylark.Wing.cs +++ b/src/Skylark.Wing/Skylark.Wing.cs @@ -21,8 +21,8 @@ // Creator: Taiizor // Website: www.Vegalya.com // Created: 17.Jun.2023 -// Changed: 05.Mar.2024 -// Version: 3.1.3.3 +// Changed: 06.Mar.2024 +// Version: 3.1.3.4 // // |---------DO-NOT-REMOVE---------| diff --git a/src/Skylark.Wing/Skylark.Wing.csproj b/src/Skylark.Wing/Skylark.Wing.csproj index 347e8ba7..47b54d12 100644 --- a/src/Skylark.Wing/Skylark.Wing.csproj +++ b/src/Skylark.Wing/Skylark.Wing.csproj @@ -12,7 +12,7 @@ Resources\Skylark.Wing.ico - 3.1.3.3 + 3.1.3.4 $(Version) true Skylark.Wing