Style tweaks
This commit is contained in:
parent
2963977cf9
commit
f908e2a064
1 changed files with 2 additions and 2 deletions
|
@ -343,11 +343,11 @@ static const struct
|
||||||
|
|
||||||
const unsigned char* FindResource(const char *name, const char *type, size_t *size)
|
const unsigned char* FindResource(const char *name, const char *type, size_t *size)
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < sizeof(resources) / sizeof(resources[0]); ++i)
|
for (size_t i = 0; i < sizeof(resources) / sizeof(resources[0]); ++i)
|
||||||
{
|
{
|
||||||
if (!strcmp(name, resources[i].name) && !strcmp(type, resources[i].type))
|
if (!strcmp(name, resources[i].name) && !strcmp(type, resources[i].type))
|
||||||
{
|
{
|
||||||
if (size)
|
if (size != NULL)
|
||||||
*size = resources[i].size;
|
*size = resources[i].size;
|
||||||
|
|
||||||
return resources[i].data;
|
return resources[i].data;
|
||||||
|
|
Loading…
Add table
Reference in a new issue