Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /sys_win.c [5f8c6e] .. [dcc88f] Maximize Restore

  Switch to side-by-side view

--- a/sys_win.c
+++ b/sys_win.c
@@ -764,7 +764,7 @@
 {
 
 	if (fdwReason == DLL_PROCESS_ATTACH)
-		hDllInstance = hInstance;
+		hDllInstance = (HINSTANCE)hInstance;
 
 	return TRUE;   // Indicate that the DLL was initialized successfully.
 }
@@ -942,7 +942,7 @@
     switch (dwReason)
     {
         case DLL_PROCESS_ATTACH:
-	    hDllInstance = hDll;
+	    hDllInstance = (HINSTANCE)hDll;
            // Code to run when the DLL is loaded
 
 			// FS+