cmd: Cast the result of GetProcAddress to PVOID before assigning to a function pointe...
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 15 May 2009 13:09:20 +0000 (13:09 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 15 May 2009 13:09:20 +0000 (13:09 +0000)
svn path=/branches/ros-amd64-bringup/; revision=40928

reactos/base/shell/cmd/memory.c

index 4285326..81d53ac 100644 (file)
@@ -33,7 +33,7 @@ INT CommandMemory (LPTSTR param)
        }
 
        BOOL (WINAPI *GlobalMemoryStatusEx)(LPMEMORYSTATUSEX)
-               = GetProcAddress(GetModuleHandle(_T("KERNEL32")), "GlobalMemoryStatusEx");
+               = (PVOID)GetProcAddress(GetModuleHandle(_T("KERNEL32")), "GlobalMemoryStatusEx");
        if (GlobalMemoryStatusEx)
        {
                msex.dwLength = sizeof(MEMORYSTATUSEX);