svn merge ^/trunk/blender -r46000:46100
[blender.git] / intern / utfconv / utf_winfunc.c
index 2e200ea3ad3f00093e9bb1b65fb82a83a2391ec7..68d1d6bb403c4ff453bc1ace9e4c2107aca32eba 100644 (file)
@@ -39,7 +39,7 @@ FILE * ufopen(const char * filename, const char * mode)
        UTF16_ENCODE(filename);
        UTF16_ENCODE (mode);
 
-       if(filename_16 && mode_16) {
+       if (filename_16 && mode_16) {
                f = _wfopen(filename_16, mode_16);
        }
        
@@ -81,7 +81,7 @@ int urename(const char *oldname, const char *newname )
        UTF16_ENCODE(oldname);
        UTF16_ENCODE (newname);
 
-       if(oldname_16 && newname_16) r = _wrename(oldname_16, newname_16);
+       if (oldname_16 && newname_16) r = _wrename(oldname_16, newname_16);
        
        UTF16_UN_ENCODE(newname);
        UTF16_UN_ENCODE(oldname);
@@ -94,7 +94,7 @@ int umkdir(const char *pathname)
        BOOL r = 0;
        UTF16_ENCODE(pathname);
        
-       if(pathname_16) r = CreateDirectoryW(pathname_16, NULL);
+       if (pathname_16) r = CreateDirectoryW(pathname_16, NULL);
 
        UTF16_UN_ENCODE(pathname);
 
@@ -123,10 +123,10 @@ int uput_getenv(const char *varname, char * value, size_t buffsize)
 {
        int r = 0;
        wchar_t * str;
-       if(!buffsize) return r;
+       if (!buffsize) return r;
 
        UTF16_ENCODE(varname);
-       if(varname_16) {
+       if (varname_16) {
                str = _wgetenv(varname_16);
                conv_utf_16_to_8(str, value, buffsize);
                r = 1;
@@ -143,7 +143,7 @@ int uputenv(const char *name, const char *value)
        int r = -1;
        UTF16_ENCODE(name);
        UTF16_ENCODE(value);
-       if(name_16 && value_16) {
+       if (name_16 && value_16) {
                r = (SetEnvironmentVariableW(name_16,value_16)!= 0) ? 0 : -1;
        }
        UTF16_UN_ENCODE(value);