From bf50959b8016adbf6b295178b26b8173514dd060 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Mon, 20 Jul 2009 14:51:19 +0000 Subject: Simplify SideShow GUID compares via a macro. --- Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c') diff --git a/Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c b/Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c index f2789c4a7..ad26d77b5 100644 --- a/Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c +++ b/Demos/Device/Incomplete/Sideshow/Lib/SideshowApplications.c @@ -63,7 +63,7 @@ SideShow_Application_t* SideShow_GetApplicationFromGUID(GUID_t* GUID) { if (InstalledApplications[App].InUse) { - if (memcmp(&InstalledApplications[App].ApplicationID, GUID, sizeof(GUID_t)) == 0) + if (GUID_COMPARE(&InstalledApplications[App].ApplicationID, GUID)) return &InstalledApplications[App]; } } -- cgit v1.2.3