From 33cdfc71dc0afa55e9e9a0df3527b4dc1deaca4b Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 8 Dec 2007 14:50:41 +0000 Subject: (svn r11597) -Change: replace all remaining instances of (re|m|c)alloc with (Re|M|C)allocT and add a check for out-of-memory situations to the *allocT functions. --- src/win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/win32.cpp') diff --git a/src/win32.cpp b/src/win32.cpp index e0298a0f8..0e3d4f4ef 100644 --- a/src/win32.cpp +++ b/src/win32.cpp @@ -322,7 +322,7 @@ static void SubmitFile(HWND wnd, const TCHAR *file) size = GetFileSize(h, NULL); if (size > 500000) goto error1; - mem = malloc(size); + mem = MallocT(size); if (mem == NULL) goto error1; if (!ReadFile(h, mem, size, &read, NULL) || read != size) goto error2; -- cgit v1.2.3-54-g00ecf