From bea3a737d2eadcdc777a89efcc1130ac25da3efe Mon Sep 17 00:00:00 2001 From: de4dot Date: Sat, 8 Oct 2011 12:17:01 +0200 Subject: [PATCH] Don't rename resource if old name was empty string --- de4dot.code/renamer/Module.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/de4dot.code/renamer/Module.cs b/de4dot.code/renamer/Module.cs index 233d42c7..369df002 100644 --- a/de4dot.code/renamer/Module.cs +++ b/de4dot.code/renamer/Module.cs @@ -147,7 +147,7 @@ namespace de4dot.renamer { } } } - if (newName == null) + if (newName == null || string.IsNullOrEmpty(oldName)) continue; bool isValid = false;