diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-11-02 17:43:04 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-11-02 17:43:04 -0700 |
| commit | a2514596a6f4ea865c1eb053bcee580b48f4b242 (patch) | |
| tree | 7a872db9ac58ae5f22aed17849b0e82538635d4c /loader/loader.c | |
| parent | d26750d750bb581c1edb5eeb3190b7c1fb647ec6 (diff) | |
| download | usermoji-a2514596a6f4ea865c1eb053bcee580b48f4b242.tar.xz | |
loader: Fix Windows build
Diffstat (limited to 'loader/loader.c')
| -rw-r--r-- | loader/loader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c index c1ae2933..86247741 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -247,11 +247,11 @@ static char *loader_get_registry_files(const struct loader_instance *inst, char while ((rtn_value = RegEnumValue(key, idx++, name, &name_size, NULL, NULL, (LPBYTE) &value, &value_size)) == ERROR_SUCCESS) { if (value_size == sizeof(value) && value == 0) { if (out == NULL) { - out = loader_heap_alloc(inst, total_size, VK_SYSTEM_ALLOCATION_TYPE_INTERNAL); + out = loader_heap_alloc(inst, total_size, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); out[0] = '\0'; } else if (strlen(out) + name_size + 1 > total_size) { - out = loader_heap_realloc(inst, out, total_size, total_size * 2, VK_SYSTEM_ALLOCATION_TYPE_INTERNAL); + out = loader_heap_realloc(inst, out, total_size, total_size * 2, VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE); total_size *= 2; } if (out == NULL) { |
