mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 09:11:23 +00:00
Add some debug messages, and disable them (#define NDEBUG)
svn path=/trunk/; revision=19014
This commit is contained in:
parent
10981b14f0
commit
0e95797fc0
1 changed files with 16 additions and 3 deletions
|
@ -7,7 +7,7 @@
|
||||||
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
|
* PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include "netcfgx.h"
|
#include "netcfgx.h"
|
||||||
|
@ -21,7 +21,6 @@ AppendStringToMultiSZ(
|
||||||
IN HKEY hKey,
|
IN HKEY hKey,
|
||||||
IN PCWSTR ValueName,
|
IN PCWSTR ValueName,
|
||||||
IN PCWSTR ValueToAppend)
|
IN PCWSTR ValueToAppend)
|
||||||
|
|
||||||
{
|
{
|
||||||
PWSTR Buffer = NULL;
|
PWSTR Buffer = NULL;
|
||||||
DWORD dwRegType;
|
DWORD dwRegType;
|
||||||
|
@ -114,6 +113,8 @@ NetClassInstaller(
|
||||||
if (InstallFunction != DIF_INSTALLDEVICE)
|
if (InstallFunction != DIF_INSTALLDEVICE)
|
||||||
return ERROR_DI_DO_DEFAULT;
|
return ERROR_DI_DO_DEFAULT;
|
||||||
|
|
||||||
|
DPRINT("%lu %p %p\n", InstallFunction, DeviceInfoSet, DeviceInfoData);
|
||||||
|
|
||||||
/* Create a new UUID */
|
/* Create a new UUID */
|
||||||
RpcStatus = UuidCreate(&Uuid);
|
RpcStatus = UuidCreate(&Uuid);
|
||||||
if (RpcStatus != RPC_S_OK && RpcStatus != RPC_S_UUID_LOCAL_ONLY)
|
if (RpcStatus != RPC_S_OK && RpcStatus != RPC_S_UUID_LOCAL_ONLY)
|
||||||
|
@ -280,13 +281,22 @@ NetClassInstaller(
|
||||||
}
|
}
|
||||||
rc = AppendStringToMultiSZ(hKey, L"Bind", DeviceName);
|
rc = AppendStringToMultiSZ(hKey, L"Bind", DeviceName);
|
||||||
if (rc != ERROR_SUCCESS)
|
if (rc != ERROR_SUCCESS)
|
||||||
|
{
|
||||||
|
DPRINT("AppendStringToMultiSZ() failed with error 0x%lx\n", rc);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
rc = AppendStringToMultiSZ(hKey, L"Export", ExportName);
|
rc = AppendStringToMultiSZ(hKey, L"Export", ExportName);
|
||||||
if (rc != ERROR_SUCCESS)
|
if (rc != ERROR_SUCCESS)
|
||||||
|
{
|
||||||
|
DPRINT("AppendStringToMultiSZ() failed with error 0x%lx\n", rc);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
rc = AppendStringToMultiSZ(hKey, L"Route", UuidString);
|
rc = AppendStringToMultiSZ(hKey, L"Route", UuidString);
|
||||||
if (rc != ERROR_SUCCESS)
|
if (rc != ERROR_SUCCESS)
|
||||||
|
{
|
||||||
|
DPRINT("AppendStringToMultiSZ() failed with error 0x%lx\n", rc);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
rc = ERROR_SUCCESS;
|
rc = ERROR_SUCCESS;
|
||||||
|
|
||||||
|
@ -305,5 +315,8 @@ cleanup:
|
||||||
if (hConnectionKey != INVALID_HANDLE_VALUE)
|
if (hConnectionKey != INVALID_HANDLE_VALUE)
|
||||||
RegCloseKey(hConnectionKey);
|
RegCloseKey(hConnectionKey);
|
||||||
|
|
||||||
return rc == ERROR_SUCCESS ? ERROR_DI_DO_DEFAULT : rc;
|
if (rc == ERROR_SUCCESS)
|
||||||
|
rc = ERROR_DI_DO_DEFAULT;
|
||||||
|
DPRINT("Returning 0x%lx\n", rc);
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue