Skip to content
Snippets Groups Projects
Commit 36d10c88 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

Corrected cast so hello5 compiles again.

parent e16512ba
No related branches found
No related tags found
No related merge requests found
/*
* This example demonstrates dynamical loading of (internal) Win32 DLLS.
*/
#include <windows.h>
#include <stdio.h>
#include <windows.h>
int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
{
......@@ -15,7 +15,7 @@ int PASCAL WinMain (HANDLE inst, HANDLE prev, LPSTR cmdline, int show)
fprintf(stderr,"FATAL: could not load KERNEL32!\n");
return 0;
}
fnGetSystemInfo = (void (CALLBACK*)(LPSYSTEM_INFO))GetProcAddress(kernel32,"GetSystemInfo");
fnGetSystemInfo = (void*)GetProcAddress(kernel32,"GetSystemInfo");
if (!fnGetSystemInfo) {
fprintf(stderr,"FATAL: could not find GetSystemInfo!\n");
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment