aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-07-24 10:18:40 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-07-24 10:21:14 -0600
commit7990ea24ee80e3e47d429804519666f5eb3badbb (patch)
tree2ee920f86f818c4ef90d891509ea68802009902b
parent0d498bd6b118997c1c7d4baacc714deeda964aa2 (diff)
downloadusermoji-7990ea24ee80e3e47d429804519666f5eb3badbb.tar.xz
loader: Only check 32-bits for magic value
The loaderMagic grew to be 64-bits to look better but need to mask it to 32bits for the validation check.
-rw-r--r--include/vk_icd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vk_icd.h b/include/vk_icd.h
index 70c9f799..cea46be7 100644
--- a/include/vk_icd.h
+++ b/include/vk_icd.h
@@ -25,7 +25,7 @@ static inline void set_loader_magic_value(void* pNewObject) {
static inline bool valid_loader_magic_value(void* pNewObject) {
const VK_LOADER_DATA *loader_info = (VK_LOADER_DATA *) pNewObject;
- return loader_info->loaderMagic == ICD_LOADER_MAGIC;
+ return (loader_info->loaderMagic & 0xffffffff) == ICD_LOADER_MAGIC;
}
#endif // VKICD_H