summaryrefslogtreecommitdiff
path: root/tests/projects/windows/winsdk/usbview/devnode.c
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-17 00:42:42 +0800
committerruki <[email protected]>2022-09-17 00:42:42 +0800
commit35dba941d82bb0ffeed07709843d432278afbc6f (patch)
treeda83fff9444692da4c69d60fbfa80212c561e99f /tests/projects/windows/winsdk/usbview/devnode.c
parent58f335941b3fcaeb05e44cf52eaea0f6f85d4d57 (diff)
remove tailing spaces for tests
Diffstat (limited to 'tests/projects/windows/winsdk/usbview/devnode.c')
-rw-r--r--tests/projects/windows/winsdk/usbview/devnode.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/projects/windows/winsdk/usbview/devnode.c b/tests/projects/windows/winsdk/usbview/devnode.c
index d9a3b8ecc..1acd377e7 100644
--- a/tests/projects/windows/winsdk/usbview/devnode.c
+++ b/tests/projects/windows/winsdk/usbview/devnode.c
@@ -22,7 +22,7 @@
Returns FALSE if the matching DevNode is not found and TRUE if found
*****************************************************************************/
-BOOL
+BOOL
DriverNameToDeviceInst(
_In_reads_bytes_(cbDriverName) PCHAR DriverName,
_In_ size_t cbDriverName,
@@ -103,7 +103,7 @@ DriverNameToDeviceInst(
// This could be an error, or indication that all devices have been
// processed. Either way the desired device was not found.
//
-
+
done = TRUE;
break;
}
@@ -116,7 +116,7 @@ DriverNameToDeviceInst(
&deviceInfoData,
SPDRP_DRIVER,
&buf);
-
+
// If the DriverName value matches, return the DeviceInstance
//
if (bResult == TRUE && buf != NULL && _stricmp(pDriverName, buf) == 0)
@@ -163,9 +163,9 @@ Done:
The caller should free the returned structure using FREE() macro
*****************************************************************************/
-PUSB_DEVICE_PNP_STRINGS
-DriverNameToDeviceProperties(
- _In_reads_bytes_(cbDriverName) PCHAR DriverName,
+PUSB_DEVICE_PNP_STRINGS
+DriverNameToDeviceProperties(
+ _In_reads_bytes_(cbDriverName) PCHAR DriverName,
_In_ size_t cbDriverName
)
{
@@ -200,17 +200,17 @@ DriverNameToDeviceProperties(
&len);
lastError = GetLastError();
-
+
if (status != FALSE && lastError != ERROR_INSUFFICIENT_BUFFER)
{
status = FALSE;
goto Done;
}
-
+
//
// An extra byte is required for the terminating character
//
-
+
len++;
DevProps->DeviceId = ALLOC(len);
@@ -234,14 +234,14 @@ DriverNameToDeviceProperties(
&deviceInfoData,
SPDRP_DEVICEDESC,
&DevProps->DeviceDesc);
-
+
if (status == FALSE)
{
goto Done;
}
-
- //
+
+ //
// We don't fail if the following registry query fails as these fields are additional information only
//