diff options
| -rw-r--r-- | win32/plugins/dfxvideo/DFXVideo.dsp | 18 | ||||
| -rw-r--r-- | win32/plugins/dfxvideo/winsrc/winmain.c | 15 |
2 files changed, 18 insertions, 15 deletions
diff --git a/win32/plugins/dfxvideo/DFXVideo.dsp b/win32/plugins/dfxvideo/DFXVideo.dsp index 64173a4d..508944b8 100644 --- a/win32/plugins/dfxvideo/DFXVideo.dsp +++ b/win32/plugins/dfxvideo/DFXVideo.dsp @@ -94,10 +94,9 @@ LINK32=link.exe # Begin Group "winsrc"
# PROP Default_Filter ""
-# Begin Source File
+# Begin Group "directx"
-SOURCE=.\winsrc\cfg.c
-# End Source File
+# PROP Default_Filter ""
# Begin Source File
SOURCE=.\winsrc\d3d.h
@@ -116,19 +115,24 @@ SOURCE=.\winsrc\ddraw.h # End Source File
# Begin Source File
-SOURCE=.\winsrc\DFXVideo.def
+SOURCE=.\winsrc\dxguid.c
# End Source File
+# End Group
# Begin Source File
-SOURCE=.\winsrc\DFXVideo.rc
+SOURCE=.\winsrc\cfg.c
# End Source File
# Begin Source File
-SOURCE=.\winsrc\draw.c
+SOURCE=.\winsrc\DFXVideo.def
# End Source File
# Begin Source File
-SOURCE=.\winsrc\dxguid.c
+SOURCE=.\winsrc\DFXVideo.rc
+# End Source File
+# Begin Source File
+
+SOURCE=.\winsrc\draw.c
# End Source File
# Begin Source File
diff --git a/win32/plugins/dfxvideo/winsrc/winmain.c b/win32/plugins/dfxvideo/winsrc/winmain.c index 16d45f29..baf19648 100644 --- a/win32/plugins/dfxvideo/winsrc/winmain.c +++ b/win32/plugins/dfxvideo/winsrc/winmain.c @@ -26,15 +26,14 @@ BOOL APIENTRY DllMain(HANDLE hModule, // DLL INIT LPVOID lpReserved) {
switch (dwReason) {
- case DLL_PROCESS_ATTACH: - hInst = (HINSTANCE)hModule;
- hDDrawDLL = LoadLibrary(TEXT("DDRAW.DLL"));
- break;
+ case DLL_PROCESS_ATTACH: + hInst = (HINSTANCE)hModule;
+ hDDrawDLL = LoadLibrary(TEXT("DDRAW.DLL"));
+ break;
- case DLL_PROCESS_DETACH:
- hInst = NULL;
- if (hDDrawDLL) FreeLibrary(hDDrawDLL);
- break;
+ case DLL_PROCESS_DETACH:
+ if (hDDrawDLL) FreeLibrary(hDDrawDLL);
+ break;
}
return TRUE; // very quick :) |
