diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-11-23 17:51:46 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-11-24 17:54:53 +0300 |
commit | 64d9291d26b4a855c7891a02b118c450b9b2709a (patch) | |
tree | d6eda350b36aee522b4372cf5f0efe5e5e35ac40 /extern/hipew/src | |
parent | 2cc56495f3ce9fb8d959c78f761602da019c958a (diff) |
Cleanup: formatting
Diffstat (limited to 'extern/hipew/src')
-rw-r--r-- | extern/hipew/src/hipew.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extern/hipew/src/hipew.c b/extern/hipew/src/hipew.c index 593901aad9c..010c361fa46 100644 --- a/extern/hipew/src/hipew.c +++ b/extern/hipew/src/hipew.c @@ -219,17 +219,17 @@ static int hipewHasOldDriver(const char *hip_path) { DWORD verHandle = 0; DWORD verSize = GetFileVersionInfoSize(hip_path, &verHandle); int old_driver = 0; - if(verSize != 0) { + if (verSize != 0) { LPSTR verData = (LPSTR)malloc(verSize); - if(GetFileVersionInfo(hip_path, verHandle, verSize, verData)) { + if (GetFileVersionInfo(hip_path, verHandle, verSize, verData)) { LPBYTE lpBuffer = NULL; UINT size = 0; - if(VerQueryValue(verData, "\\", (VOID FAR * FAR *)&lpBuffer, &size)) { - if(size) { + if (VerQueryValue(verData, "\\", (VOID FAR * FAR *)&lpBuffer, &size)) { + if (size) { VS_FIXEDFILEINFO *verInfo = (VS_FIXEDFILEINFO *)lpBuffer; /* Magic value from * https://docs.microsoft.com/en-us/windows/win32/api/verrsrc/ns-verrsrc-vs_fixedfileinfo */ - if(verInfo->dwSignature == 0xfeef04bd) { + if (verInfo->dwSignature == 0xfeef04bd) { unsigned int fileVersionLS0 = (verInfo->dwFileVersionLS >> 16) & 0xffff; unsigned int fileversionLS1 = (verInfo->dwFileVersionLS >> 0) & 0xffff; /* Corresponds to versions older than AMD Radeon Pro 21.Q4. */ |