rodneyviana / ODSyncService

OneDrive service/DLL for Sync State
MIT License
93 stars 26 forks source link

fixed NullReferenceException when reg key is not found #17

Closed eduardomb08 closed 4 years ago

eduardomb08 commented 4 years ago

I came across some machines that did not have the EnableLUA for some reason. In that case the code would throw a NullReferenceException.

According to the docs here the default value for EnableLUA is True.

The proposed change makes the IsUacEnabled property return True if the key or subkey are not found instead of throwing the exception.