Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pykd-ext
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Todd Hartman
pykd-ext
Commits
8e1984f8
Commit
8e1984f8
authored
Dec 11, 2019
by
ussrhero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed script path searching
parent
593d4037
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
22 deletions
+12
-22
sources/version.h
sources/version.h
+1
-1
sources/windbgext.cpp
sources/windbgext.cpp
+11
-21
No files found.
sources/version.h
View file @
8e1984f8
...
...
@@ -3,7 +3,7 @@
#define PYKDEXT_VERSION_MAJOR 2
#define PYKDEXT_VERSION_MINOR 0
#define PYKDEXT_VERSION_SUBVERSION 0
#define PYKDEXT_VERSION_BUILDNO 2
2
#define PYKDEXT_VERSION_BUILDNO 2
3
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)
...
...
sources/windbgext.cpp
View file @
8e1984f8
...
...
@@ -661,32 +661,22 @@ std::string getScriptFileName(const std::string &scriptName)
{
char
*
ext
=
NULL
;
DWORD
searchResult
=
SearchPathA
(
NULL
,
scriptName
.
c_str
(),
NULL
,
0
,
NULL
,
NULL
);
if
(
searchResult
==
0
)
if
(
scriptName
.
length
()
<=
3
||
scriptName
.
find_last_of
(
".py"
)
!=
scriptName
.
length
()
-
3
)
{
ext
=
".py"
;
}
searchResult
=
SearchPathA
(
NULL
,
scriptName
.
c_str
(),
ext
,
0
,
NULL
,
NULL
);
DWORD
searchResult
=
SearchPathA
(
NULL
,
scriptName
.
c_str
(),
ext
,
0
,
NULL
,
NULL
);
if
(
searchResult
==
0
)
{
if
(
searchResult
==
0
)
{
return
""
;
}
}
std
::
vector
<
char
>
pathBuffer
(
searchResult
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment