mirror of
https://github.com/Ylianst/MeshCentralRouter
synced 2025-12-06 00:13:33 +00:00
fixes for upload #99
delete unused file, increase upload speed size, fix random crashing
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1539,7 +1539,7 @@ namespace MeshCentralRouter
|
||||
private void uploadNextPart(bool dataPriming)
|
||||
{
|
||||
if(uploadActive == false) return;
|
||||
byte[] buffer = new byte[16385];
|
||||
byte[] buffer = new byte[65565];
|
||||
int len = uploadFileStream.Read(buffer, 1, buffer.Length - 1);
|
||||
if(dataPriming && (len == 0)) return;
|
||||
uploadFilePtr += len;
|
||||
|
||||
@@ -965,7 +965,9 @@ namespace MeshCentralRouter
|
||||
private IntPtr captureKey(int nCode, IntPtr wp, IntPtr lp)
|
||||
{
|
||||
bool bIsForegroundWindow = false;
|
||||
try { bIsForegroundWindow = GetForegroundWindow() == this.ParentForm.Handle; } catch { }
|
||||
if(this.ParentForm != null) {
|
||||
try { bIsForegroundWindow = GetForegroundWindow() == this.ParentForm.Handle; } catch { }
|
||||
}
|
||||
if(nCode >= 0 && bIsForegroundWindow)
|
||||
{
|
||||
KBDLLHOOKSTRUCT objKeyInfo = (KBDLLHOOKSTRUCT)Marshal.PtrToStructure(lp, typeof(KBDLLHOOKSTRUCT));
|
||||
|
||||
Reference in New Issue
Block a user