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:
jp9000
2019-01-12 16:50:55 -08:00
parent 455187e6e4
commit 8f106dc3c1
3 changed files with 8 additions and 2 deletions

View File

@@ -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 |