Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/dynlib.c')
-rw-r--r--source/blender/blenlib/intern/dynlib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/dynlib.c b/source/blender/blenlib/intern/dynlib.c
index c23feb975df..e300d09ffbc 100644
--- a/source/blender/blenlib/intern/dynlib.c
+++ b/source/blender/blenlib/intern/dynlib.c
@@ -56,7 +56,7 @@ DynamicLibrary *BLI_dynlib_open(char *name)
handle= LoadLibraryW(name_16);
UTF16_UN_ENCODE(name);
- if(!handle)
+ if (!handle)
return NULL;
lib= MEM_callocN(sizeof(*lib), "Dynamic Library");
@@ -76,13 +76,13 @@ char *BLI_dynlib_get_error_as_string(DynamicLibrary *lib)
/* if lib is NULL reset the last error code */
err= GetLastError();
- if(!lib)
+ if (!lib)
SetLastError(ERROR_SUCCESS);
- if(err) {
+ if (err) {
static char buf[1024];
- if(FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,
+ if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM|FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
buf, sizeof(buf), NULL))
return buf;
@@ -106,7 +106,7 @@ DynamicLibrary *BLI_dynlib_open(char *name)
DynamicLibrary *lib;
void *handle= dlopen(name, RTLD_LAZY);
- if(!handle)
+ if (!handle)
return NULL;
lib= MEM_callocN(sizeof(*lib), "Dynamic Library");