From 3a617a62bfa1cb5e74db59cd7500d8c38a9783f5 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Fri, 13 Aug 2010 05:31:25 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@56055 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- win32/plugins/dfxvideo/DFXVideo.dsp | 18 +++++++++++------- win32/plugins/dfxvideo/winsrc/winmain.c | 15 +++++++-------- 2 files changed, 18 insertions(+), 15 deletions(-) (limited to 'win32/plugins') 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 :) -- cgit v1.2.3