]> wimlib.net Git - wimlib/blobdiff - src/win32_common.c
win32_do_capture_warnings: Shorten message
[wimlib] / src / win32_common.c
index 0a7a6d55c48b9c423df776a39a2b13d7919ba89b..78ea99a5dabb3d8ac24db87ae154635b89e25132 100644 (file)
@@ -1,3 +1,28 @@
+/*
+ * win32_common.c - Windows code common to applying and capturing images, as
+ * well as replacements for various functions not available on Windows, such as
+ * fsync().
+ */
+
+/*
+ * Copyright (C) 2013 Eric Biggers
+ *
+ * This file is part of wimlib, a library for working with WIM files.
+ *
+ * wimlib is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU General Public License as published by the Free
+ * Software Foundation; either version 3 of the License, or (at your option)
+ * any later version.
+ *
+ * wimlib is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ * A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with wimlib; if not, see http://www.gnu.org/licenses/.
+ */
+
 #ifdef __WIN32__
 
 #include <shlwapi.h> /* for PathMatchSpecW() */
@@ -613,20 +638,13 @@ win32_global_init()
                }
        }
 
-       DEBUG("Looking for FindFirstStreamW");
-       win32func_FindFirstStreamW = (void*)GetProcAddress(hKernel32, "FindFirstStreamW");
-       if (!win32func_FindFirstStreamW) {
-               WARNING("Could not find function FindFirstStreamW() in Kernel32.dll!");
-               WARNING("Capturing alternate data streams will not be supported.");
-               return;
-       }
-
-       DEBUG("Looking for FindNextStreamW");
-       win32func_FindNextStreamW = (void*)GetProcAddress(hKernel32, "FindNextStreamW");
-       if (!win32func_FindNextStreamW) {
-               WARNING("Could not find function FindNextStreamW() in Kernel32.dll!");
-               WARNING("Capturing alternate data streams will not be supported.");
-               win32func_FindFirstStreamW = NULL;
+       win32func_FindFirstStreamW = (void*)GetProcAddress(hKernel32,
+                                                          "FindFirstStreamW");
+       if (win32func_FindFirstStreamW) {
+               win32func_FindNextStreamW = (void*)GetProcAddress(hKernel32,
+                                                                 "FindNextStreamW");
+               if (!win32func_FindNextStreamW)
+                       win32func_FindFirstStreamW = NULL;
        }
 }