[ros-diffs] [ion] 14711: Remove bogus error message. It is normal
for Mutex creation to fail since the Object will alredy exist after
the first time it's created
Thomas Weidenmueller
w3seek at reactos.com
Wed Apr 20 16:58:05 CEST 2005
ion at svn.reactos.com wrote:
> Remove bogus error message. It is normal for Mutex creation to fail
> since the Object will alredy exist after the first time it's created
> Modified: trunk/reactos/lib/rpcrt4/rpcrt4_main.c
> _____
>
> Modified: trunk/reactos/lib/rpcrt4/rpcrt4_main.c
> --- trunk/reactos/lib/rpcrt4/rpcrt4_main.c 2005-04-20 12:46:39 UTC
> (rev 14710)
> +++ trunk/reactos/lib/rpcrt4/rpcrt4_main.c 2005-04-20 12:52:13 UTC
> (rev 14711)
> @@ -152,8 +152,6 @@
>
> case DLL_PROCESS_ATTACH:
> DisableThreadLibraryCalls(hinstDLL);
> master_mutex = CreateMutexA( NULL, FALSE,
> RPCSS_MASTER_MUTEX_NAME);
> - if (!master_mutex)
> - ERR("Failed to create master mutex\n");
> break;
>
> case DLL_PROCESS_DETACH:
> _______________________________________________
> Ros-diffs mailing list
> Ros-diffs at reactos.com
> http://reactos.com:8080/mailman/listinfo/ros-diffs
>
IMO you should open the mutex if creating it failed, otherwise
master_mutex is NULL...
Best Regards,
Thomas
More information about the Ros-diffs
mailing list