<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>On Wed, 3 Sep 2014 14:54:44 +0200, Jonathan Vollebregt wrote:<br><br>> + if (path[0] == '\\')<br>> + {<br>> + path++;<br>> + }<br>> + if (path[0] == '\\')<br>> + {<br>> + reg_message(STRING_NO_REMOTE);<br>> + return NULL;<br>> + }<br><br>This would be valid if the path was something like \\remote-machine\HKLM.<br><br>But if the first if block was true and the second block was false, the registry path is invalid. Windows does not accept registry paths such as \HKLM.<br><br>In summary:<br><br>True + True = valid path, but not supported in Wine.<br>True + False = invalid path<br>False + True = impossible<br>False + False = valid path<br><br>The original check was better:<br><pre>if (key_name[0] == '\\' && key_name[1] == '\\')
{
reg_message(STRING_NO_REMOTE);<br> return 1;<br>}<br></pre>It was also unclear why you perform the path[0] == '\\' check in path_get_key() and path_get_rootkey_name(). One common check should be enough. The original version of this patch did this (now superseded). But I see you made some changes around the reg_delete() function.<br> </div></body>
</html>