Skip to content

Commit

Permalink
Update Devcon.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nefarius committed Aug 7, 2024
1 parent 5d68eb9 commit be1eb79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Devcon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ static std::expected<PBYTE, Win32Error> GetDeviceRegistryProperty(
{
buffer = (PBYTE)LocalAlloc(LPTR, sizeRequired);
}
else if (win32Error == ERROR_INVALID_DATA)
{
return std::unexpected(Win32Error(ERROR_NOT_FOUND, "SetupDiGetDeviceRegistryProperty"));
}
else
{
return std::unexpected(Win32Error(win32Error, "SetupDiGetDeviceRegistryProperty"));
Expand Down

0 comments on commit be1eb79

Please sign in to comment.