Author: tkreuzer
Date: Fri May 15 17:09:20 2009
New Revision: 40928
URL:
http://svn.reactos.org/svn/reactos?rev=40928&view=rev
Log:
cmd: Cast the result of GetProcAddress to PVOID before assigning to a function pointer.
Fixes a warning on 64 bit builds.
Modified:
branches/ros-amd64-bringup/reactos/base/shell/cmd/memory.c
Modified: branches/ros-amd64-bringup/reactos/base/shell/cmd/memory.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/base/…
==============================================================================
--- branches/ros-amd64-bringup/reactos/base/shell/cmd/memory.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/base/shell/cmd/memory.c [iso-8859-1] Fri May 15
17:09:20 2009
@@ -33,7 +33,7 @@
}
BOOL (WINAPI *GlobalMemoryStatusEx)(LPMEMORYSTATUSEX)
- = GetProcAddress(GetModuleHandle(_T("KERNEL32")),
"GlobalMemoryStatusEx");
+ = (PVOID)GetProcAddress(GetModuleHandle(_T("KERNEL32")),
"GlobalMemoryStatusEx");
if (GlobalMemoryStatusEx)
{
msex.dwLength = sizeof(MEMORYSTATUSEX);