This repository has been archived by the owner on May 9, 2023. It is now read-only.
forked from pbatard/libwdi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Closes pbatard#238
- Loading branch information
Showing
6 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Library for WinUSB/libusb automated driver installation | ||
* Copyright (c) 2010-2013 Pete Batard <[email protected]> | ||
* Library for USB automated driver installation | ||
* Copyright (c) 2010-2022 Pete Batard <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
|
@@ -689,7 +689,7 @@ BOOL disable_system_restore(BOOL enabled) | |
LONG r; | ||
DWORD disp, regtype, val, val_size=sizeof(DWORD); | ||
HRESULT hr; | ||
IGroupPolicyObject* pLGPO; | ||
IGroupPolicyObject* pLGPO = NULL; | ||
static DWORD original_val = -1; // -1 = key doesn't exist | ||
HKEY machine_key = NULL, disable_system_restore_key = NULL; | ||
// MSVC is finicky about these ones => redefine them | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters