]> granicus.if.org Git - libexpat/commitdiff
loadlibrary.c: Exclude line from coverage
authorSebastian Pipping <sebastian@pipping.org>
Mon, 11 Sep 2017 15:07:15 +0000 (17:07 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 11 Sep 2017 15:11:29 +0000 (17:11 +0200)
.. as it seems that something in Windows/Wine would need to be off
to execute it.

expat/lib/loadlibrary.c

index 452ae92db2673c95e4646afeb894474af7888f2a..35fdf98bce6ceac2e2de490700bd95889710d298 100644 (file)
@@ -84,7 +84,7 @@ HMODULE _Expat_LoadLibrary(LPCTSTR filename)
   /* Get a handle to kernel32 so we can access it's functions at runtime */
   HMODULE hKernel32 = GetModuleHandle(TEXT("kernel32"));
   if(!hKernel32)
-    return NULL;
+    return NULL;  /* LCOV_EXCL_LINE */
 
   /* Attempt to find LoadLibraryEx() which is only available on Windows 2000
      and above */