Skip to content

Commit b11949c

Browse files
authored
Merge pull request #125 from microsoft/master
Cut another release to fix the bug in 2.0.153
2 parents b54ac74 + 9d8d5c8 commit b11949c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/release-homebrew.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
uses: actions/[email protected]
1212
id: version
1313
with:
14+
github-token: ${{secrets.GITHUB_TOKEN}}
1415
result-encoding: string
1516
script: |
1617
const { data } = await github.repos.getReleaseByTag({

src/shared/Microsoft.Git.CredentialManager/Interop/Windows/WindowsSessionManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public unsafe bool IsDesktopSession
2020
// In .NET 5 the implementation on Windows has been 'fixed', but still POSIX versions always return true.
2121
//
2222
// This code is lifted from the .NET 5 targeting dotnet/runtime implementation for Windows:
23-
// https://github.com/dotnet/runtime/blob/8c10a98c13263eea806d4fcecb76d29e38593539/src/libraries/System.Private.CoreLib/src/System/Environment.Windows.cs#L125-L145
23+
// https://github.com/dotnet/runtime/blob/cf654f08fb0078a96a4e414a0d2eab5e6c069387/src/libraries/System.Private.CoreLib/src/System/Environment.Windows.cs#L125-L145
2424

2525
// Per documentation of GetProcessWindowStation, this handle should not be closed
2626
IntPtr handle = User32.GetProcessWindowStation();
@@ -31,7 +31,7 @@ public unsafe bool IsDesktopSession
3131
if (User32.GetUserObjectInformation(handle, User32.UOI_FLAGS, &flags,
3232
(uint) sizeof(USEROBJECTFLAGS), ref dummy))
3333
{
34-
return (flags.dwFlags & User32.WSF_VISIBLE) == 0;
34+
return (flags.dwFlags & User32.WSF_VISIBLE) != 0;
3535
}
3636
}
3737

0 commit comments

Comments
 (0)