Skip to content
New issue

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

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

Already on GitHub? # to your account

Windows.Storage.Provider.StorageProviderSyncRootManager.Register returns HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER) #2486

Open
PetrMinar opened this issue Jan 10, 2025 · 0 comments
Assignees
Labels
Pri3 Topic is in the bottom 50% of page views for the repo or was not created via Feedback control.

Comments

@PetrMinar
Copy link

The documentation should mention that there is a limit to the maximum length of StorageProviderSyncRootInfo::Id. Deep inside the Register function is this code:

StringCchPrintfW( 
    DestBuffer,
    260,
    L"%s\\%s\\CustomStates\\%d",
    L"Software\Microsoft\Windows\CurrentVersion\Explorer\SyncRootManager",
    L"... StorageProviderSyncRootInfo::Id ...",
    1);

When the ID is longer than 174 characters the function fails with mentioned error and leaves "semi-registered" storage provider that cannot be easily unregistered.

@issues-automation issues-automation bot added the Pri3 Topic is in the bottom 50% of page views for the repo or was not created via Feedback control. label Jan 10, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Pri3 Topic is in the bottom 50% of page views for the repo or was not created via Feedback control.
Projects
None yet
Development

No branches or pull requests

2 participants