mirror of
https://github.com/mid-kid/metroskrew.git
synced 2025-06-18 21:25:44 -04:00
Minor consistency
This commit is contained in:
parent
6a04657b6f
commit
fba27e30a2
@ -14,9 +14,14 @@ __stdcall char *path_join(char *src, char *dst, size_t size); // 0x004110f0
|
||||
// 0x00411b90
|
||||
__stdcall int string_alloc(unsigned size, mwstring *string)
|
||||
{
|
||||
string->data = GlobalAlloc(GMEM_ZEROINIT, size);
|
||||
char *data = GlobalAlloc(GMEM_ZEROINIT, size);
|
||||
if (!data) {
|
||||
string->data = NULL;
|
||||
string->size = size;
|
||||
return my_GetLastError();
|
||||
}
|
||||
string->data = data;
|
||||
string->size = size;
|
||||
if (!string->data) return my_GetLastError();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user