libobs, UI: Do not log redundant warnings
Reduces log file clutter by not logging certain warning messages that were already safe/normal/expected failures.
This commit is contained in:
@@ -92,6 +92,12 @@ void *os_dlopen(const char *path)
|
||||
|
||||
if (!h_library) {
|
||||
DWORD error = GetLastError();
|
||||
|
||||
/* don't print error for libraries that aren't meant to be
|
||||
* dynamically linked */
|
||||
if (error == ERROR_PROC_NOT_FOUND)
|
||||
return NULL;
|
||||
|
||||
char *message = NULL;
|
||||
|
||||
FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM |
|
||||
|
Reference in New Issue
Block a user