Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CfAPI Win32 build #2801

Merged
merged 2 commits into from
Jan 7, 2021
Merged

Fix CfAPI Win32 build #2801

merged 2 commits into from
Jan 7, 2021

Conversation

er-vin
Copy link
Member

@er-vin er-vin commented Jan 7, 2021

This time for real it seems. :-)

Kevin Ottens added 2 commits January 7, 2021 13:40
MSVC having so useless error messages it didn't quite point to the root
cause of the issue... it turns out that through the maze of macros
defined in the windows API, there's one which impacted the function
pointer definition of CfCloseHandle which would then not convert to
FileHandle::Deleter as expected. So I end up wrapping it in a lambda to
help... luckily this kind of lambdas decay into a simple function
pointer so there's likely no overhead it's just to coerce the compiler
into doing the right thing.

Signed-off-by: Kevin Ottens <[email protected]>
@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-2801-2d8eb19ee5a9c4cc78b7d70a19855483466217db-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@er-vin er-vin merged commit 8d5d45e into master Jan 7, 2021
@er-vin er-vin deleted the fix_cfapi_win32_build branch January 7, 2021 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants