Kaydet (Commit) 5cf40e38 authored tarafından David Tardon's avatar David Tardon

WaE: variable 'hr' set but not used

üst 3eb65ae0
...@@ -51,7 +51,6 @@ bool IsUnregisterParameter(const char* Param) ...@@ -51,7 +51,6 @@ bool IsUnregisterParameter(const char* Param)
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
HMODULE hmod; HMODULE hmod;
HRESULT hr = E_FAIL;
lpfnDllRegisterServer lpfn_register; lpfnDllRegisterServer lpfn_register;
lpfnDllUnregisterServer lpfn_unregister; lpfnDllUnregisterServer lpfn_unregister;
...@@ -65,7 +64,7 @@ int main(int argc, char* argv[]) ...@@ -65,7 +64,7 @@ int main(int argc, char* argv[])
hmod, "DllRegisterServer"); hmod, "DllRegisterServer");
if (lpfn_register) if (lpfn_register)
hr = lpfn_register(); lpfn_register();
FreeLibrary(hmod); FreeLibrary(hmod);
} }
...@@ -80,7 +79,7 @@ int main(int argc, char* argv[]) ...@@ -80,7 +79,7 @@ int main(int argc, char* argv[])
hmod, "DllUnregisterServer"); hmod, "DllUnregisterServer");
if (lpfn_unregister) if (lpfn_unregister)
hr = lpfn_unregister(); lpfn_unregister();
FreeLibrary(hmod); FreeLibrary(hmod);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment