Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packetWin7/NPFInstall/NPFInstall/RegUtil.cpp
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@ BOOL WriteStrToRegistry(LPCTSTR strSubKey, LPCTSTR strValueName, LPCTSTR strDevi
Status = RegSetValueEx(hNpcapKey, strValueName, 0, REG_SZ, (PBYTE)strDeviceName, (lstrlen(strDeviceName) + 1) * sizeof(TCHAR));
if (Status != ERROR_SUCCESS)
{
TRACE_PRINT1("RegSetValueEx: error, errCode = 0x%08x.", GetLastError());
TRACE_PRINT1("RegSetValueEx: error, errCode = 0x%08x.", Status);
RegCloseKey(hNpcapKey);
TRACE_EXIT();
return FALSE;
@@ -97,7 +97,7 @@ BOOL WriteStrToRegistry(LPCTSTR strSubKey, LPCTSTR strValueName, LPCTSTR strDevi
}
else
{
TRACE_PRINT1("RegOpenKeyEx: error, errCode = 0x%08x.", GetLastError());
TRACE_PRINT1("RegOpenKeyEx: error, errCode = 0x%08x.", Status);
TRACE_EXIT();
return FALSE;
}

0 comments on commit d50abf2

Please sign in to comment.