From: Nirbheek Chauhan Date: Thu, 2 Jul 2020 09:31:40 +0000 (+0530) Subject: orc: Fix indentation X-Git-Tag: orc-0.4.33~92 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e221d8bec087aceebbd81cca286dde6f74d31aa;p=platform%2Fupstream%2Forc.git orc: Fix indentation Only whitespace changes. Part-of: --- diff --git a/orc/orccompiler.c b/orc/orccompiler.c index 600e66b..e6bd43c 100644 --- a/orc/orccompiler.c +++ b/orc/orccompiler.c @@ -234,23 +234,24 @@ _get_protect_name (int protect) static orc_bool _set_virtual_protect (void * mem, size_t size, int code_protect) { - char *msg; - DWORD old_protect; + char *msg; + DWORD old_protect; - if (!mem) - return FALSE; - if (_virtualprotect (mem, size, code_protect, &old_protect) > 0) - return TRUE; + if (!mem) + return FALSE; - FormatMessageA (FORMAT_MESSAGE_ALLOCATE_BUFFER - | FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYSTEM, NULL, - GetLastError (), 0, (LPTSTR) &msg, 0, NULL); - ORC_ERROR ("Couldn't set memory protect on %p from %s to %s: %s", mem, - _get_protect_name (old_protect), _get_protect_name (code_protect), msg); - LocalFree (msg); + if (_virtualprotect (mem, size, code_protect, &old_protect) > 0) + return TRUE; - return FALSE; + FormatMessageA (FORMAT_MESSAGE_ALLOCATE_BUFFER + | FORMAT_MESSAGE_IGNORE_INSERTS | FORMAT_MESSAGE_FROM_SYSTEM, NULL, + GetLastError (), 0, (LPTSTR) &msg, 0, NULL); + ORC_ERROR ("Couldn't set memory protect on %p from %s to %s: %s", mem, + _get_protect_name (old_protect), _get_protect_name (code_protect), msg); + LocalFree (msg); + + return FALSE; } #endif