Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3b458d

Browse files
vasily-kirichenkoKevinRansom
authored andcommitted
ProjectNode.TransferItem doesn't try to do anything and returns E_INVALIDARG if oldMkDoc and newMkDoc are equal (dotnet#2467)
1 parent650c411 commita3b458d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎vsintegration/src/FSharp.ProjectSystem.Base/Project/ProjectNode.cs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5448,10 +5448,15 @@ public virtual int TransferItem(string oldMkDoc, string newMkDoc, IVsWindowFrame
54485448
{
54495449
returnVSConstants.E_FAIL;
54505450
}
5451-
//Fail if the document names passed are null.
5451+
5452+
// Fail if the document names passed are null.
54525453
if(oldMkDoc==null||newMkDoc==null)
54535454
returnVSConstants.E_INVALIDARG;
54545455

5456+
// Fail if the document names passed are equal.
5457+
if(oldMkDoc==newMkDoc)
5458+
returnVSConstants.E_INVALIDARG;
5459+
54555460
inthr=VSConstants.S_OK;
54565461
VSDOCUMENTPRIORITY[]priority=newVSDOCUMENTPRIORITY[1];
54575462
uintitemid=VSConstants.VSITEMID_NIL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp