Skip to content

Commit 597749d

Browse files
authored
Merge pull request kimmknight#19 from MrBrianGale/Issue18
Fixes Issue 18
2 parents f0062b7 + bb9de62 commit 597749d

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

remoteapp-tool/My Project/AssemblyInfo.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Imports System.Runtime.InteropServices
1818
<Assembly: ComVisible(False)>
1919

2020
'The following GUID is for the ID of the typelib if this project is exposed to COM
21-
<Assembly: Guid("fbd55db5-06ea-4e43-92a4-6e96893013cc")>
21+
<Assembly: Guid("fbd55db5-06ea-4e43-92a4-6e96893013cc")>
2222

2323
' Version information for an assembly consists of the following four values:
2424
'
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
3131
' by using the '*' as shown below:
3232
' <Assembly: AssemblyVersion("1.0.*")>
3333

34-
<Assembly: AssemblyVersion("5.4.0.0")>
35-
<Assembly: AssemblyFileVersion("5.4.0.0")>
34+
<Assembly: AssemblyVersion("5.4.0.18")>
35+
<Assembly: AssemblyFileVersion("5.4.0.18")>

remoteapp-tool/RemoteAppCreateClientConnection.vb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,13 @@ Public Class RemoteAppCreateClientConnection
224224
If ExtractToIco(RemoteApp.IconPath, RemoteApp.IconIndex, IconFilePath) = False Then
225225
MessageBox.Show("Icon could not be created the RemoteApp. RDP file will still be created.", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
226226
End If
227-
For Each FTA As RemoteAppLib.FileTypeAssociation In RemoteApp.FileTypeAssociations
228-
Dim ProductFileName = VB.Left(RDPPath, RDPPath.Length - 4)
229-
ExtractFTIcon(ProductFileName, FTA)
230-
Next
227+
' Check if there are file type associations before trying to work with the file type association icons
228+
If Not (RemoteApp.FileTypeAssociations Is Nothing) Then
229+
For Each FTA As RemoteAppLib.FileTypeAssociation In RemoteApp.FileTypeAssociations
230+
Dim ProductFileName = VB.Left(RDPPath, RDPPath.Length - 4)
231+
ExtractFTIcon(ProductFileName, FTA)
232+
Next
233+
End If
231234
End If
232235
Me.Close()
233236
Else

0 commit comments

Comments
 (0)